<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetCustomerResponse EasyStruct
 * @package Easy
 * @subpackage Structs
 */
class EasyGetCustomerResponse extends AbstractStructBase
{
    /**
     * The GetCustomerResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \Easy\EasyStruct\EasyClsGetCustomerResp
     */
    public $GetCustomerResult;
    /**
     * Constructor method for GetCustomerResponse
     * @uses EasyGetCustomerResponse::setGetCustomerResult()
     * @param \Easy\EasyStruct\EasyClsGetCustomerResp $getCustomerResult
     */
    public function __construct(\Easy\EasyStruct\EasyClsGetCustomerResp $getCustomerResult = null)
    {
        $this
            ->setGetCustomerResult($getCustomerResult);
    }
    /**
     * Get GetCustomerResult 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\EasyClsGetCustomerResp|null
     */
    public function getGetCustomerResult()
    {
        return isset($this->GetCustomerResult) ? $this->GetCustomerResult : null;
    }
    /**
     * Set GetCustomerResult 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\EasyClsGetCustomerResp $getCustomerResult
     * @return \Easy\EasyStruct\EasyGetCustomerResponse
     */
    public function setGetCustomerResult(\Easy\EasyStruct\EasyClsGetCustomerResp $getCustomerResult = null)
    {
        if (is_null($getCustomerResult) || (is_array($getCustomerResult) && empty($getCustomerResult))) {
            unset($this->GetCustomerResult);
        } else {
            $this->GetCustomerResult = $getCustomerResult;
        }
        return $this;
    }
}
