<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdatePrimaryPhoneResponse StructType
 * @subpackage Structs
 */
class UpdatePrimaryPhoneResponse extends AbstractStructBase
{
    /**
     * The UpdatePrimaryPhoneResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \CustomerManagement\StructType\UpdatePrimaryPhoneOutput
     */
    public $UpdatePrimaryPhoneResult;
    /**
     * Constructor method for UpdatePrimaryPhoneResponse
     * @uses UpdatePrimaryPhoneResponse::setUpdatePrimaryPhoneResult()
     * @param \CustomerManagement\StructType\UpdatePrimaryPhoneOutput $updatePrimaryPhoneResult
     */
    public function __construct(\CustomerManagement\StructType\UpdatePrimaryPhoneOutput $updatePrimaryPhoneResult = null)
    {
        $this
            ->setUpdatePrimaryPhoneResult($updatePrimaryPhoneResult);
    }
    /**
     * Get UpdatePrimaryPhoneResult value
     * @return \CustomerManagement\StructType\UpdatePrimaryPhoneOutput|null
     */
    public function getUpdatePrimaryPhoneResult()
    {
        return $this->UpdatePrimaryPhoneResult;
    }
    /**
     * Set UpdatePrimaryPhoneResult value
     * @param \CustomerManagement\StructType\UpdatePrimaryPhoneOutput $updatePrimaryPhoneResult
     * @return \CustomerManagement\StructType\UpdatePrimaryPhoneResponse
     */
    public function setUpdatePrimaryPhoneResult(\CustomerManagement\StructType\UpdatePrimaryPhoneOutput $updatePrimaryPhoneResult = null)
    {
        $this->UpdatePrimaryPhoneResult = $updatePrimaryPhoneResult;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \CustomerManagement\StructType\UpdatePrimaryPhoneResponse
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
