<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateOrderResponse StructType
 * @subpackage Structs
 */
class UpdateOrderResponse extends AbstractStructBase
{
    /**
     * The return
     * Meta information extracted from the WSDL
     * - nillable: true
     * @var string
     */
    public $return;
    /**
     * The result
     * Meta information extracted from the WSDL
     * - nillable: true
     * @var Result
     */
    public $result;
    /**
     * Constructor method for UpdateOrderResponse
     * @uses UpdateOrderResponse::setReturn()
     * @uses UpdateOrderResponse::setResult()
     * @param string $return
     * @param Result $result
     */
    public function __construct($return = null, Result $result = null)
    {
        $this
            ->setReturn($return)
            ->setResult($result);
    }
    /**
     * Get return value
     * @return string|null
     */
    public function getReturn()
    {
        return $this->return;
    }
    /**
     * Set return value
     * @param string $return
     * @return UpdateOrderResponse
     */
    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 result value
     * @return Result|null
     */
    public function getResult()
    {
        return $this->result;
    }
    /**
     * Set result value
     * @param Result $result
     * @return UpdateOrderResponse
     */
    public function setResult(Result $result = null)
    {
        $this->result = $result;
        return $this;
    }
}
