<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetOrder StructType
 * @subpackage Structs
 */
class GetOrder extends AbstractStructBase
{
    /**
     * The orderId
     * @var string
     */
    public $orderId;
    /**
     * Constructor method for GetOrder
     * @uses GetOrder::setOrderId()
     * @param string $orderId
     */
    public function __construct($orderId = null)
    {
        $this
            ->setOrderId($orderId);
    }
    /**
     * Get orderId value
     * @return string|null
     */
    public function getOrderId()
    {
        return $this->orderId;
    }
    /**
     * Set orderId value
     * @param string $orderId
     * @return GetOrder
     */
    public function setOrderId($orderId = null)
    {
        // validation for constraint: string
        if (!is_null($orderId) && !is_string($orderId)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($orderId, true), gettype($orderId)), __LINE__);
        }
        $this->orderId = $orderId;
        return $this;
    }
}
