<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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