<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OXCallForwardAll StructType
 * @subpackage Structs
 */
class OXCallForwardAll extends AbstractStructBase
{
    /**
     * The callingSearchSpaceName
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var OXFkType
     */
    public $callingSearchSpaceName;
    /**
     * The secondaryCallingSearchSpaceName
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var OXFkType
     */
    public $secondaryCallingSearchSpaceName;
    /**
     * Constructor method for OXCallForwardAll
     * @uses OXCallForwardAll::setCallingSearchSpaceName()
     * @uses OXCallForwardAll::setSecondaryCallingSearchSpaceName()
     * @param OXFkType $callingSearchSpaceName
     * @param OXFkType $secondaryCallingSearchSpaceName
     */
    public function __construct(OXFkType $callingSearchSpaceName = null, OXFkType $secondaryCallingSearchSpaceName = null)
    {
        $this
            ->setCallingSearchSpaceName($callingSearchSpaceName)
            ->setSecondaryCallingSearchSpaceName($secondaryCallingSearchSpaceName);
    }
    /**
     * Get callingSearchSpaceName value
     * @return OXFkType|null
     */
    public function getCallingSearchSpaceName()
    {
        return $this->callingSearchSpaceName;
    }
    /**
     * Set callingSearchSpaceName value
     * @param OXFkType $callingSearchSpaceName
     * @return OXCallForwardAll
     */
    public function setCallingSearchSpaceName(OXFkType $callingSearchSpaceName = null)
    {
        $this->callingSearchSpaceName = $callingSearchSpaceName;
        return $this;
    }
    /**
     * Get secondaryCallingSearchSpaceName value
     * @return OXFkType|null
     */
    public function getSecondaryCallingSearchSpaceName()
    {
        return $this->secondaryCallingSearchSpaceName;
    }
    /**
     * Set secondaryCallingSearchSpaceName value
     * @param OXFkType $secondaryCallingSearchSpaceName
     * @return OXCallForwardAll
     */
    public function setSecondaryCallingSearchSpaceName(OXFkType $secondaryCallingSearchSpaceName = null)
    {
        $this->secondaryCallingSearchSpaceName = $secondaryCallingSearchSpaceName;
        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 OXCallForwardAll
     */
    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__;
    }
}
