<?php
namespace Api\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for SearchRequest StructType
* @package Api
* @subpackage Structs
* @release 1.1.0
*/
class ApiSearchRequest extends AbstractStructBase
{
/**
* The Query
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $Query;
/**
* The AppId
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $AppId;
/**
* The Sources
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var \Api\ArrayType\ApiArrayOfSourceType
*/
public $Sources;
/**
* The parameters
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var \Api\StructType\ApiSearchRequest
*/
public $parameters;
/**
* The Version
* Meta informations extracted from the WSDL
* - default: 2.2
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $Version;
/**
* The Market
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $Market;
/**
* The UILanguage
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $UILanguage;
/**
* The Adult
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $Adult;
/**
* The Latitude
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var double
*/
public $Latitude;
/**
* The Longitude
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var double
*/
public $Longitude;
/**
* The Radius
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var double
*/
public $Radius;
/**
* The Options
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var \Api\ArrayType\ApiArrayOfSearchOption
*/
public $Options;
/**
* The Web
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var \Api\StructType\ApiWebRequest
*/
public $Web;
/**
* The Image
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var \Api\StructType\ApiImageRequest
*/
public $Image;
/**
* The Phonebook
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var \Api\StructType\ApiPhonebookRequest
*/
public $Phonebook;
/**
* The Video
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var \Api\StructType\ApiVideoRequest
*/
public $Video;
/**
* The News
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var \Api\StructType\ApiNewsRequest
*/
public $News;
/**
* The MobileWeb
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var \Api\StructType\ApiMobileWebRequest
*/
public $MobileWeb;
/**
* The Translation
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var \Api\StructType\ApiTranslationRequest
*/
public $Translation;
/**
* Constructor method for SearchRequest
* @uses ApiSearchRequest::setQuery()
* @uses ApiSearchRequest::setAppId()
* @uses ApiSearchRequest::setSources()
* @uses ApiSearchRequest::setParameters()
* @uses ApiSearchRequest::setVersion()
* @uses ApiSearchRequest::setMarket()
* @uses ApiSearchRequest::setUILanguage()
* @uses ApiSearchRequest::setAdult()
* @uses ApiSearchRequest::setLatitude()
* @uses ApiSearchRequest::setLongitude()
* @uses ApiSearchRequest::setRadius()
* @uses ApiSearchRequest::setOptions()
* @uses ApiSearchRequest::setWeb()
* @uses ApiSearchRequest::setImage()
* @uses ApiSearchRequest::setPhonebook()
* @uses ApiSearchRequest::setVideo()
* @uses ApiSearchRequest::setNews()
* @uses ApiSearchRequest::setMobileWeb()
* @uses ApiSearchRequest::setTranslation()
* @param string $query
* @param string $appId
* @param \Api\ArrayType\ApiArrayOfSourceType $sources
* @param \Api\StructType\ApiSearchRequest $parameters
* @param string $version
* @param string $market
* @param string $uILanguage
* @param string $adult
* @param double $latitude
* @param double $longitude
* @param double $radius
* @param \Api\ArrayType\ApiArrayOfSearchOption $options
* @param \Api\StructType\ApiWebRequest $web
* @param \Api\StructType\ApiImageRequest $image
* @param \Api\StructType\ApiPhonebookRequest $phonebook
* @param \Api\StructType\ApiVideoRequest $video
* @param \Api\StructType\ApiNewsRequest $news
* @param \Api\StructType\ApiMobileWebRequest $mobileWeb
* @param \Api\StructType\ApiTranslationRequest $translation
*/
public function __construct($query = null, $appId = null, \Api\ArrayType\ApiArrayOfSourceType $sources = null, \Api\StructType\ApiSearchRequest $parameters = null, $version = '2.2', $market = null, $uILanguage = null, $adult = null, $latitude = null, $longitude = null, $radius = null, \Api\ArrayType\ApiArrayOfSearchOption $options = null, \Api\StructType\ApiWebRequest $web = null, \Api\StructType\ApiImageRequest $image = null, \Api\StructType\ApiPhonebookRequest $phonebook = null, \Api\StructType\ApiVideoRequest $video = null, \Api\StructType\ApiNewsRequest $news = null, \Api\StructType\ApiMobileWebRequest $mobileWeb = null, \Api\StructType\ApiTranslationRequest $translation = null)
{
$this
->setQuery($query)
->setAppId($appId)
->setSources($sources)
->setParameters($parameters)
->setVersion($version)
->setMarket($market)
->setUILanguage($uILanguage)
->setAdult($adult)
->setLatitude($latitude)
->setLongitude($longitude)
->setRadius($radius)
->setOptions($options)
->setWeb($web)
->setImage($image)
->setPhonebook($phonebook)
->setVideo($video)
->setNews($news)
->setMobileWeb($mobileWeb)
->setTranslation($translation);
}
/**
* Get Query value
* @return string
*/
public function getQuery()
{
return $this->Query;
}
/**
* Set Query value
* @param string $query
* @return \Api\StructType\ApiSearchRequest
*/
public function setQuery($query = null)
{
$this->Query = $query;
return $this;
}
/**
* Get AppId value
* @return string
*/
public function getAppId()
{
return $this->AppId;
}
/**
* Set AppId value
* @param string $appId
* @return \Api\StructType\ApiSearchRequest
*/
public function setAppId($appId = null)
{
$this->AppId = $appId;
return $this;
}
/**
* Get Sources value
* @return \Api\ArrayType\ApiArrayOfSourceType
*/
public function getSources()
{
return $this->Sources;
}
/**
* Set Sources value
* @param \Api\ArrayType\ApiArrayOfSourceType $sources
* @return \Api\StructType\ApiSearchRequest
*/
public function setSources(\Api\ArrayType\ApiArrayOfSourceType $sources = null)
{
$this->Sources = $sources;
return $this;
}
/**
* Get parameters value
* @return \Api\StructType\ApiSearchRequest
*/
public function getParameters()
{
return $this->parameters;
}
/**
* Set parameters value
* @param \Api\StructType\ApiSearchRequest $parameters
* @return \Api\StructType\ApiSearchRequest
*/
public function setParameters(\Api\StructType\ApiSearchRequest $parameters = null)
{
$this->parameters = $parameters;
return $this;
}
/**
* Get Version value
* @return string|null
*/
public function getVersion()
{
return $this->Version;
}
/**
* Set Version value
* @param string $version
* @return \Api\StructType\ApiSearchRequest
*/
public function setVersion($version = '2.2')
{
$this->Version = $version;
return $this;
}
/**
* Get Market value
* @return string|null
*/
public function getMarket()
{
return $this->Market;
}
/**
* Set Market value
* @param string $market
* @return \Api\StructType\ApiSearchRequest
*/
public function setMarket($market = null)
{
$this->Market = $market;
return $this;
}
/**
* Get UILanguage value
* @return string|null
*/
public function getUILanguage()
{
return $this->UILanguage;
}
/**
* Set UILanguage value
* @param string $uILanguage
* @return \Api\StructType\ApiSearchRequest
*/
public function setUILanguage($uILanguage = null)
{
$this->UILanguage = $uILanguage;
return $this;
}
/**
* Get Adult value
* @return string|null
*/
public function getAdult()
{
return $this->Adult;
}
/**
* Set Adult value
* @uses \Api\EnumType\ApiAdultOption::valueIsValid()
* @uses \Api\EnumType\ApiAdultOption::getValidValues()
* @throws \InvalidArgumentException
* @param string $adult
* @return \Api\StructType\ApiSearchRequest
*/
public function setAdult($adult = null)
{
if (!\Api\EnumType\ApiAdultOption::valueIsValid($adult)) {
throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $adult, implode(', ', \Api\EnumType\ApiAdultOption::getValidValues())), __LINE__);
}
$this->Adult = $adult;
return $this;
}
/**
* Get Latitude value
* @return double|null
*/
public function getLatitude()
{
return $this->Latitude;
}
/**
* Set Latitude value
* @param double $latitude
* @return \Api\StructType\ApiSearchRequest
*/
public function setLatitude($latitude = null)
{
$this->Latitude = $latitude;
return $this;
}
/**
* Get Longitude value
* @return double|null
*/
public function getLongitude()
{
return $this->Longitude;
}
/**
* Set Longitude value
* @param double $longitude
* @return \Api\StructType\ApiSearchRequest
*/
public function setLongitude($longitude = null)
{
$this->Longitude = $longitude;
return $this;
}
/**
* Get Radius value
* @return double|null
*/
public function getRadius()
{
return $this->Radius;
}
/**
* Set Radius value
* @param double $radius
* @return \Api\StructType\ApiSearchRequest
*/
public function setRadius($radius = null)
{
$this->Radius = $radius;
return $this;
}
/**
* Get Options value
* @return \Api\ArrayType\ApiArrayOfSearchOption|null
*/
public function getOptions()
{
return $this->Options;
}
/**
* Set Options value
* @param \Api\ArrayType\ApiArrayOfSearchOption $options
* @return \Api\StructType\ApiSearchRequest
*/
public function setOptions(\Api\ArrayType\ApiArrayOfSearchOption $options = null)
{
$this->Options = $options;
return $this;
}
/**
* Get Web value
* @return \Api\StructType\ApiWebRequest|null
*/
public function getWeb()
{
return $this->Web;
}
/**
* Set Web value
* @param \Api\StructType\ApiWebRequest $web
* @return \Api\StructType\ApiSearchRequest
*/
public function setWeb(\Api\StructType\ApiWebRequest $web = null)
{
$this->Web = $web;
return $this;
}
/**
* Get Image value
* @return \Api\StructType\ApiImageRequest|null
*/
public function getImage()
{
return $this->Image;
}
/**
* Set Image value
* @param \Api\StructType\ApiImageRequest $image
* @return \Api\StructType\ApiSearchRequest
*/
public function setImage(\Api\StructType\ApiImageRequest $image = null)
{
$this->Image = $image;
return $this;
}
/**
* Get Phonebook value
* @return \Api\StructType\ApiPhonebookRequest|null
*/
public function getPhonebook()
{
return $this->Phonebook;
}
/**
* Set Phonebook value
* @param \Api\StructType\ApiPhonebookRequest $phonebook
* @return \Api\StructType\ApiSearchRequest
*/
public function setPhonebook(\Api\StructType\ApiPhonebookRequest $phonebook = null)
{
$this->Phonebook = $phonebook;
return $this;
}
/**
* Get Video value
* @return \Api\StructType\ApiVideoRequest|null
*/
public function getVideo()
{
return $this->Video;
}
/**
* Set Video value
* @param \Api\StructType\ApiVideoRequest $video
* @return \Api\StructType\ApiSearchRequest
*/
public function setVideo(\Api\StructType\ApiVideoRequest $video = null)
{
$this->Video = $video;
return $this;
}
/**
* Get News value
* @return \Api\StructType\ApiNewsRequest|null
*/
public function getNews()
{
return $this->News;
}
/**
* Set News value
* @param \Api\StructType\ApiNewsRequest $news
* @return \Api\StructType\ApiSearchRequest
*/
public function setNews(\Api\StructType\ApiNewsRequest $news = null)
{
$this->News = $news;
return $this;
}
/**
* Get MobileWeb value
* @return \Api\StructType\ApiMobileWebRequest|null
*/
public function getMobileWeb()
{
return $this->MobileWeb;
}
/**
* Set MobileWeb value
* @param \Api\StructType\ApiMobileWebRequest $mobileWeb
* @return \Api\StructType\ApiSearchRequest
*/
public function setMobileWeb(\Api\StructType\ApiMobileWebRequest $mobileWeb = null)
{
$this->MobileWeb = $mobileWeb;
return $this;
}
/**
* Get Translation value
* @return \Api\StructType\ApiTranslationRequest|null
*/
public function getTranslation()
{
return $this->Translation;
}
/**
* Set Translation value
* @param \Api\StructType\ApiTranslationRequest $translation
* @return \Api\StructType\ApiSearchRequest
*/
public function setTranslation(\Api\StructType\ApiTranslationRequest $translation = null)
{
$this->Translation = $translation;
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 \Api\StructType\ApiSearchRequest
*/
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__;
}
}
|