xxxxxxxxxx
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for ActivityOfferingPropertyBase StructType
* @subpackage Structs
*/
abstract class ActivityOfferingPropertyBase extends Entity
{
/**
* The CanBeOffered
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var bool
*/
public $CanBeOffered;
/**
* The OfferingOfActivity
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var int
*/
public $OfferingOfActivity;
/**
* The Id
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $Id;
/**
* Constructor method for ActivityOfferingPropertyBase
* @uses ActivityOfferingPropertyBase::setCanBeOffered()
* @uses ActivityOfferingPropertyBase::setOfferingOfActivity()
* @uses ActivityOfferingPropertyBase::setId()
* @param bool $canBeOffered
* @param int $offeringOfActivity
* @param string $id
*/
public function __construct($canBeOffered = null, $offeringOfActivity = null, $id = null)
{
$this
->setCanBeOffered($canBeOffered)
->setOfferingOfActivity($offeringOfActivity)
->setId($id);
}
/**
* Get CanBeOffered value
* @return bool
*/
public function getCanBeOffered()
{
return $this->CanBeOffered;
}
/**
* Set CanBeOffered value
* @param bool $canBeOffered
* @return ActivityOfferingPropertyBase
*/
public function setCanBeOffered($canBeOffered = null)
{
$this->CanBeOffered = $canBeOffered;
return $this;
}
/**
* Get OfferingOfActivity value
* @return int
*/
public function getOfferingOfActivity()
{
return $this->OfferingOfActivity;
}
/**
* Set OfferingOfActivity value
* @param int $offeringOfActivity
* @return ActivityOfferingPropertyBase
*/
public function setOfferingOfActivity($offeringOfActivity = null)
{
// validation for constraint: int
if (!is_null($offeringOfActivity) && !is_numeric($offeringOfActivity)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($offeringOfActivity)), __LINE__);
}
$this->OfferingOfActivity = $offeringOfActivity;
return $this;
}
/**
* Get Id value
* @return string|null
*/
public function getId()
{
return $this->Id;
}
/**
* Set Id value
* @param string $id
* @return ActivityOfferingPropertyBase
*/
public function setId($id = null)
{
// validation for constraint: string
if (!is_null($id) && !is_string($id)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($id)), __LINE__);
}
$this->Id = $id;
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 ActivityOfferingPropertyBase
*/
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