<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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