<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for PutOrderResponse StructType
 * @subpackage Structs
 */
class PutOrderResponse extends AbstractStructBase
{
    /**
     * The return
     * Meta information extracted from the WSDL
     * - nillable: true
     * @var string
     */
    public $return;
    /**
     * The id
     * @var string
     */
    public $id;
    /**
     * The status
     * @var string
     */
    public $status;
    /**
     * Constructor method for PutOrderResponse
     * @uses PutOrderResponse::setReturn()
     * @uses PutOrderResponse::setId()
     * @uses PutOrderResponse::setStatus()
     * @param string $return
     * @param string $id
     * @param string $status
     */
    public function __construct($return = null, $id = null, $status = null)
    {
        $this
            ->setReturn($return)
            ->setId($id)
            ->setStatus($status);
    }
    /**
     * Get return value
     * @return string|null
     */
    public function getReturn()
    {
        return $this->return;
    }
    /**
     * Set return value
     * @param string $return
     * @return PutOrderResponse
     */
    public function setReturn($return = null)
    {
        // validation for constraint: string
        if (!is_null($return) && !is_string($return)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($return, true), gettype($return)), __LINE__);
        }
        $this->return = $return;
        return $this;
    }
    /**
     * Get id value
     * @return string|null
     */
    public function getId()
    {
        return $this->id;
    }
    /**
     * Set id value
     * @param string $id
     * @return PutOrderResponse
     */
    public function setId($id = null)
    {
        // validation for constraint: string
        if (!is_null($id) && !is_string($id)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($id, true), gettype($id)), __LINE__);
        }
        $this->id = $id;
        return $this;
    }
    /**
     * Get status value
     * @return string|null
     */
    public function getStatus()
    {
        return $this->status;
    }
    /**
     * Set status value
     * @param string $status
     * @return PutOrderResponse
     */
    public function setStatus($status = null)
    {
        // validation for constraint: string
        if (!is_null($status) && !is_string($status)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($status, true), gettype($status)), __LINE__);
        }
        $this->status = $status;
        return $this;
    }
}
