<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AddCallingPartyTransformationPatternReq StructType
 * @subpackage Structs
 */
class AddCallingPartyTransformationPatternReq extends APIRequest
{
    /**
     * The callingPartyTransformationPattern
     * @var XCallingPartyTransformationPattern
     */
    public $callingPartyTransformationPattern;
    /**
     * Constructor method for AddCallingPartyTransformationPatternReq
     * @uses AddCallingPartyTransformationPatternReq::setCallingPartyTransformationPattern()
     * @param XCallingPartyTransformationPattern $callingPartyTransformationPattern
     */
    public function __construct(XCallingPartyTransformationPattern $callingPartyTransformationPattern = null)
    {
        $this
            ->setCallingPartyTransformationPattern($callingPartyTransformationPattern);
    }
    /**
     * Get callingPartyTransformationPattern value
     * @return XCallingPartyTransformationPattern|null
     */
    public function getCallingPartyTransformationPattern()
    {
        return $this->callingPartyTransformationPattern;
    }
    /**
     * Set callingPartyTransformationPattern value
     * @param XCallingPartyTransformationPattern $callingPartyTransformationPattern
     * @return AddCallingPartyTransformationPatternReq
     */
    public function setCallingPartyTransformationPattern(XCallingPartyTransformationPattern $callingPartyTransformationPattern = null)
    {
        $this->callingPartyTransformationPattern = $callingPartyTransformationPattern;
        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 AddCallingPartyTransformationPatternReq
     */
    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__;
    }
}
