<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for InsertPickUpOrder EasyStruct
 * @package Easy
 * @subpackage Structs
 */
class EasyInsertPickUpOrder extends AbstractStructBase
{
    /**
     * The myClsPickUpOrder
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \Easy\EasyStruct\EasyClsPickUpOrder
     */
    public $myClsPickUpOrder;
    /**
     * The myClsCredential
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \Easy\EasyStruct\EasyClsCredential
     */
    public $myClsCredential;
    /**
     * Constructor method for InsertPickUpOrder
     * @uses EasyInsertPickUpOrder::setMyClsPickUpOrder()
     * @uses EasyInsertPickUpOrder::setMyClsCredential()
     * @param \Easy\EasyStruct\EasyClsPickUpOrder $myClsPickUpOrder
     * @param \Easy\EasyStruct\EasyClsCredential $myClsCredential
     */
    public function __construct(\Easy\EasyStruct\EasyClsPickUpOrder $myClsPickUpOrder = null, \Easy\EasyStruct\EasyClsCredential $myClsCredential = null)
    {
        $this
            ->setMyClsPickUpOrder($myClsPickUpOrder)
            ->setMyClsCredential($myClsCredential);
    }
    /**
     * Get myClsPickUpOrder value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \Easy\EasyStruct\EasyClsPickUpOrder|null
     */
    public function getMyClsPickUpOrder()
    {
        return isset($this->myClsPickUpOrder) ? $this->myClsPickUpOrder : null;
    }
    /**
     * Set myClsPickUpOrder value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \Easy\EasyStruct\EasyClsPickUpOrder $myClsPickUpOrder
     * @return \Easy\EasyStruct\EasyInsertPickUpOrder
     */
    public function setMyClsPickUpOrder(\Easy\EasyStruct\EasyClsPickUpOrder $myClsPickUpOrder = null)
    {
        if (is_null($myClsPickUpOrder) || (is_array($myClsPickUpOrder) && empty($myClsPickUpOrder))) {
            unset($this->myClsPickUpOrder);
        } else {
            $this->myClsPickUpOrder = $myClsPickUpOrder;
        }
        return $this;
    }
    /**
     * Get myClsCredential value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \Easy\EasyStruct\EasyClsCredential|null
     */
    public function getMyClsCredential()
    {
        return isset($this->myClsCredential) ? $this->myClsCredential : null;
    }
    /**
     * Set myClsCredential value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \Easy\EasyStruct\EasyClsCredential $myClsCredential
     * @return \Easy\EasyStruct\EasyInsertPickUpOrder
     */
    public function setMyClsCredential(\Easy\EasyStruct\EasyClsCredential $myClsCredential = null)
    {
        if (is_null($myClsCredential) || (is_array($myClsCredential) && empty($myClsCredential))) {
            unset($this->myClsCredential);
        } else {
            $this->myClsCredential = $myClsCredential;
        }
        return $this;
    }
}
