xxxxxxxxxx
namespace Sabre\OTAAirSchedule\Structs;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for From Structs
* @subpackage Structs
*/
class From extends AbstractStructBase
{
/**
* The PartyId
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - ref: tns:PartyId
* @var \Sabre\OTAAirSchedule\Structs\PartyId[]
*/
public $PartyId;
/**
* The Role
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - minLength: 1
* @var string
*/
public $Role;
/**
* Constructor method for From
* @uses From::setPartyId()
* @uses From::setRole()
* @param \Sabre\OTAAirSchedule\Structs\PartyId[] $partyId
* @param string $role
*/
public function __construct(array $partyId = array(), $role = null)
{
$this
->setPartyId($partyId)
->setRole($role);
}
/**
* Get PartyId value
* @return \Sabre\OTAAirSchedule\Structs\PartyId[]|null
*/
public function getPartyId()
{
return $this->PartyId;
}
/**
* Set PartyId value
* @throws \InvalidArgumentException
* @param \Sabre\OTAAirSchedule\Structs\PartyId[] $partyId
* @return \Sabre\OTAAirSchedule\Structs\From
*/
public function setPartyId(array $partyId = array())
{
$this->PartyId = $partyId;
return $this;
}
/**
* Add item to PartyId value
* @throws \InvalidArgumentException
* @param \Sabre\OTAAirSchedule\Structs\PartyId $item
* @return \Sabre\OTAAirSchedule\Structs\From
*/
public function addToPartyId(\Sabre\OTAAirSchedule\Structs\PartyId $item)
{
$this->PartyId[] = $item;
return $this;
}
/**
* Get Role value
* @return string|null
*/
public function getRole()
{
return $this->Role;
}
/**
* Set Role value
* @param string $role
* @return \Sabre\OTAAirSchedule\Structs\From
*/
public function setRole($role = null)
{
$this->Role = $role;
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 \Sabre\OTAAirSchedule\Structs\From
*/
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__;
}
}
Don't be shy, don't hesitate to contact us for any subject, we'll be glad to help.
This platform is provided to give developpers and non developpers a way to easily consume SOAP Web Services or share their own SOAP Web Services with extra features powered by the platform.
© 2025 Providr.IO