/framework/MyeBayFavoriteSearchType.php

https://github.com/iloveitaly/ebay-php · PHP · 825 lines · 521 code · 2 blank · 302 comment · 13 complexity · 8d110df2da3907eb2670594d1c28909e MD5 · raw file

  1. <?php
  2. // autogenerated file 04.06.2009 09:55
  3. // $Id: $
  4. // $Log: $
  5. //
  6. //
  7. require_once 'ItemTypeCodeType.php';
  8. require_once 'SimpleItemSortCodeType.php';
  9. require_once 'SortOrderCodeType.php';
  10. require_once 'SellerBusinessCodeType.php';
  11. require_once 'EbatNs_ComplexType.php';
  12. require_once 'PreferredLocationCodeType.php';
  13. require_once 'ItemConditionCodeType.php';
  14. require_once 'PaymentMethodSearchCodeType.php';
  15. require_once 'CurrencyCodeType.php';
  16. require_once 'QuantityOperatorCodeType.php';
  17. require_once 'CountryCodeType.php';
  18. require_once 'AmountType.php';
  19. require_once 'SearchFlagCodeType.php';
  20. /**
  21. * Characteristics of a saved My eBay Favorite Search.
  22. *
  23. * @link http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/types/MyeBayFavoriteSearchType.html
  24. *
  25. */
  26. class MyeBayFavoriteSearchType extends EbatNs_ComplexType
  27. {
  28. /**
  29. * @var string
  30. */
  31. protected $SearchName;
  32. /**
  33. * @var string
  34. */
  35. protected $SearchQuery;
  36. /**
  37. * @var string
  38. */
  39. protected $QueryKeywords;
  40. /**
  41. * @var string
  42. */
  43. protected $CategoryID;
  44. /**
  45. * @var SimpleItemSortCodeType
  46. */
  47. protected $ItemSort;
  48. /**
  49. * @var SortOrderCodeType
  50. */
  51. protected $SortOrder;
  52. /**
  53. * @var dateTime
  54. */
  55. protected $EndTimeFrom;
  56. /**
  57. * @var dateTime
  58. */
  59. protected $EndTimeTo;
  60. /**
  61. * @var int
  62. */
  63. protected $MaxDistance;
  64. /**
  65. * @var string
  66. */
  67. protected $PostalCode;
  68. /**
  69. * @var ItemTypeCodeType
  70. */
  71. protected $ItemType;
  72. /**
  73. * @var AmountType
  74. */
  75. protected $PriceMax;
  76. /**
  77. * @var AmountType
  78. */
  79. protected $PriceMin;
  80. /**
  81. * @var CurrencyCodeType
  82. */
  83. protected $Currency;
  84. /**
  85. * @var int
  86. */
  87. protected $BidCountMax;
  88. /**
  89. * @var int
  90. */
  91. protected $BidCountMin;
  92. /**
  93. * @var SearchFlagCodeType
  94. */
  95. protected $SearchFlag;
  96. /**
  97. * @var PaymentMethodSearchCodeType
  98. */
  99. protected $PaymentMethod;
  100. /**
  101. * @var PreferredLocationCodeType
  102. */
  103. protected $PreferredLocation;
  104. /**
  105. * @var string
  106. */
  107. protected $SellerID;
  108. /**
  109. * @var string
  110. */
  111. protected $SellerIDExclude;
  112. /**
  113. * @var CountryCodeType
  114. */
  115. protected $ItemsAvailableTo;
  116. /**
  117. * @var CountryCodeType
  118. */
  119. protected $ItemsLocatedIn;
  120. /**
  121. * @var SellerBusinessCodeType
  122. */
  123. protected $SellerBusinessType;
  124. /**
  125. * @var ItemConditionCodeType
  126. */
  127. protected $Condition;
  128. /**
  129. * @var int
  130. */
  131. protected $Quantity;
  132. /**
  133. * @var QuantityOperatorCodeType
  134. */
  135. protected $QuantityOperator;
  136. /**
  137. * @return string
  138. */
  139. function getSearchName()
  140. {
  141. return $this->SearchName;
  142. }
  143. /**
  144. * @return void
  145. * @param string $value
  146. */
  147. function setSearchName($value)
  148. {
  149. $this->SearchName = $value;
  150. }
  151. /**
  152. * @return string
  153. */
  154. function getSearchQuery()
  155. {
  156. return $this->SearchQuery;
  157. }
  158. /**
  159. * @return void
  160. * @param string $value
  161. */
  162. function setSearchQuery($value)
  163. {
  164. $this->SearchQuery = $value;
  165. }
  166. /**
  167. * @return string
  168. */
  169. function getQueryKeywords()
  170. {
  171. return $this->QueryKeywords;
  172. }
  173. /**
  174. * @return void
  175. * @param string $value
  176. */
  177. function setQueryKeywords($value)
  178. {
  179. $this->QueryKeywords = $value;
  180. }
  181. /**
  182. * @return string
  183. */
  184. function getCategoryID()
  185. {
  186. return $this->CategoryID;
  187. }
  188. /**
  189. * @return void
  190. * @param string $value
  191. */
  192. function setCategoryID($value)
  193. {
  194. $this->CategoryID = $value;
  195. }
  196. /**
  197. * @return SimpleItemSortCodeType
  198. */
  199. function getItemSort()
  200. {
  201. return $this->ItemSort;
  202. }
  203. /**
  204. * @return void
  205. * @param SimpleItemSortCodeType $value
  206. */
  207. function setItemSort($value)
  208. {
  209. $this->ItemSort = $value;
  210. }
  211. /**
  212. * @return SortOrderCodeType
  213. */
  214. function getSortOrder()
  215. {
  216. return $this->SortOrder;
  217. }
  218. /**
  219. * @return void
  220. * @param SortOrderCodeType $value
  221. */
  222. function setSortOrder($value)
  223. {
  224. $this->SortOrder = $value;
  225. }
  226. /**
  227. * @return dateTime
  228. */
  229. function getEndTimeFrom()
  230. {
  231. return $this->EndTimeFrom;
  232. }
  233. /**
  234. * @return void
  235. * @param dateTime $value
  236. */
  237. function setEndTimeFrom($value)
  238. {
  239. $this->EndTimeFrom = $value;
  240. }
  241. /**
  242. * @return dateTime
  243. */
  244. function getEndTimeTo()
  245. {
  246. return $this->EndTimeTo;
  247. }
  248. /**
  249. * @return void
  250. * @param dateTime $value
  251. */
  252. function setEndTimeTo($value)
  253. {
  254. $this->EndTimeTo = $value;
  255. }
  256. /**
  257. * @return int
  258. */
  259. function getMaxDistance()
  260. {
  261. return $this->MaxDistance;
  262. }
  263. /**
  264. * @return void
  265. * @param int $value
  266. */
  267. function setMaxDistance($value)
  268. {
  269. $this->MaxDistance = $value;
  270. }
  271. /**
  272. * @return string
  273. */
  274. function getPostalCode()
  275. {
  276. return $this->PostalCode;
  277. }
  278. /**
  279. * @return void
  280. * @param string $value
  281. */
  282. function setPostalCode($value)
  283. {
  284. $this->PostalCode = $value;
  285. }
  286. /**
  287. * @return ItemTypeCodeType
  288. */
  289. function getItemType()
  290. {
  291. return $this->ItemType;
  292. }
  293. /**
  294. * @return void
  295. * @param ItemTypeCodeType $value
  296. */
  297. function setItemType($value)
  298. {
  299. $this->ItemType = $value;
  300. }
  301. /**
  302. * @return AmountType
  303. */
  304. function getPriceMax()
  305. {
  306. return $this->PriceMax;
  307. }
  308. /**
  309. * @return void
  310. * @param AmountType $value
  311. */
  312. function setPriceMax($value)
  313. {
  314. $this->PriceMax = $value;
  315. }
  316. /**
  317. * @return AmountType
  318. */
  319. function getPriceMin()
  320. {
  321. return $this->PriceMin;
  322. }
  323. /**
  324. * @return void
  325. * @param AmountType $value
  326. */
  327. function setPriceMin($value)
  328. {
  329. $this->PriceMin = $value;
  330. }
  331. /**
  332. * @return CurrencyCodeType
  333. */
  334. function getCurrency()
  335. {
  336. return $this->Currency;
  337. }
  338. /**
  339. * @return void
  340. * @param CurrencyCodeType $value
  341. */
  342. function setCurrency($value)
  343. {
  344. $this->Currency = $value;
  345. }
  346. /**
  347. * @return int
  348. */
  349. function getBidCountMax()
  350. {
  351. return $this->BidCountMax;
  352. }
  353. /**
  354. * @return void
  355. * @param int $value
  356. */
  357. function setBidCountMax($value)
  358. {
  359. $this->BidCountMax = $value;
  360. }
  361. /**
  362. * @return int
  363. */
  364. function getBidCountMin()
  365. {
  366. return $this->BidCountMin;
  367. }
  368. /**
  369. * @return void
  370. * @param int $value
  371. */
  372. function setBidCountMin($value)
  373. {
  374. $this->BidCountMin = $value;
  375. }
  376. /**
  377. * @return SearchFlagCodeType
  378. * @param integer $index
  379. */
  380. function getSearchFlag($index = null)
  381. {
  382. if ($index !== null) {
  383. return $this->SearchFlag[$index];
  384. } else {
  385. return $this->SearchFlag;
  386. }
  387. }
  388. /**
  389. * @return void
  390. * @param SearchFlagCodeType $value
  391. * @param $index
  392. */
  393. function setSearchFlag($value, $index = null)
  394. {
  395. if ($index !== null) {
  396. $this->SearchFlag[$index] = $value;
  397. } else {
  398. $this->SearchFlag = $value;
  399. }
  400. }
  401. /**
  402. * @return void
  403. * @param SearchFlagCodeType $value
  404. */
  405. function addSearchFlag($value)
  406. {
  407. $this->SearchFlag[] = $value;
  408. }
  409. /**
  410. * @return PaymentMethodSearchCodeType
  411. */
  412. function getPaymentMethod()
  413. {
  414. return $this->PaymentMethod;
  415. }
  416. /**
  417. * @return void
  418. * @param PaymentMethodSearchCodeType $value
  419. */
  420. function setPaymentMethod($value)
  421. {
  422. $this->PaymentMethod = $value;
  423. }
  424. /**
  425. * @return PreferredLocationCodeType
  426. */
  427. function getPreferredLocation()
  428. {
  429. return $this->PreferredLocation;
  430. }
  431. /**
  432. * @return void
  433. * @param PreferredLocationCodeType $value
  434. */
  435. function setPreferredLocation($value)
  436. {
  437. $this->PreferredLocation = $value;
  438. }
  439. /**
  440. * @return string
  441. * @param integer $index
  442. */
  443. function getSellerID($index = null)
  444. {
  445. if ($index !== null) {
  446. return $this->SellerID[$index];
  447. } else {
  448. return $this->SellerID;
  449. }
  450. }
  451. /**
  452. * @return void
  453. * @param string $value
  454. * @param $index
  455. */
  456. function setSellerID($value, $index = null)
  457. {
  458. if ($index !== null) {
  459. $this->SellerID[$index] = $value;
  460. } else {
  461. $this->SellerID = $value;
  462. }
  463. }
  464. /**
  465. * @return void
  466. * @param string $value
  467. */
  468. function addSellerID($value)
  469. {
  470. $this->SellerID[] = $value;
  471. }
  472. /**
  473. * @return string
  474. * @param integer $index
  475. */
  476. function getSellerIDExclude($index = null)
  477. {
  478. if ($index !== null) {
  479. return $this->SellerIDExclude[$index];
  480. } else {
  481. return $this->SellerIDExclude;
  482. }
  483. }
  484. /**
  485. * @return void
  486. * @param string $value
  487. * @param $index
  488. */
  489. function setSellerIDExclude($value, $index = null)
  490. {
  491. if ($index !== null) {
  492. $this->SellerIDExclude[$index] = $value;
  493. } else {
  494. $this->SellerIDExclude = $value;
  495. }
  496. }
  497. /**
  498. * @return void
  499. * @param string $value
  500. */
  501. function addSellerIDExclude($value)
  502. {
  503. $this->SellerIDExclude[] = $value;
  504. }
  505. /**
  506. * @return CountryCodeType
  507. */
  508. function getItemsAvailableTo()
  509. {
  510. return $this->ItemsAvailableTo;
  511. }
  512. /**
  513. * @return void
  514. * @param CountryCodeType $value
  515. */
  516. function setItemsAvailableTo($value)
  517. {
  518. $this->ItemsAvailableTo = $value;
  519. }
  520. /**
  521. * @return CountryCodeType
  522. */
  523. function getItemsLocatedIn()
  524. {
  525. return $this->ItemsLocatedIn;
  526. }
  527. /**
  528. * @return void
  529. * @param CountryCodeType $value
  530. */
  531. function setItemsLocatedIn($value)
  532. {
  533. $this->ItemsLocatedIn = $value;
  534. }
  535. /**
  536. * @return SellerBusinessCodeType
  537. */
  538. function getSellerBusinessType()
  539. {
  540. return $this->SellerBusinessType;
  541. }
  542. /**
  543. * @return void
  544. * @param SellerBusinessCodeType $value
  545. */
  546. function setSellerBusinessType($value)
  547. {
  548. $this->SellerBusinessType = $value;
  549. }
  550. /**
  551. * @return ItemConditionCodeType
  552. */
  553. function getCondition()
  554. {
  555. return $this->Condition;
  556. }
  557. /**
  558. * @return void
  559. * @param ItemConditionCodeType $value
  560. */
  561. function setCondition($value)
  562. {
  563. $this->Condition = $value;
  564. }
  565. /**
  566. * @return int
  567. */
  568. function getQuantity()
  569. {
  570. return $this->Quantity;
  571. }
  572. /**
  573. * @return void
  574. * @param int $value
  575. */
  576. function setQuantity($value)
  577. {
  578. $this->Quantity = $value;
  579. }
  580. /**
  581. * @return QuantityOperatorCodeType
  582. */
  583. function getQuantityOperator()
  584. {
  585. return $this->QuantityOperator;
  586. }
  587. /**
  588. * @return void
  589. * @param QuantityOperatorCodeType $value
  590. */
  591. function setQuantityOperator($value)
  592. {
  593. $this->QuantityOperator = $value;
  594. }
  595. /**
  596. * @return
  597. */
  598. function __construct()
  599. {
  600. parent::__construct('MyeBayFavoriteSearchType', 'urn:ebay:apis:eBLBaseComponents');
  601. if (!isset(self::$_elements[__CLASS__]))
  602. self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class()],
  603. array(
  604. 'SearchName' =>
  605. array(
  606. 'required' => false,
  607. 'type' => 'string',
  608. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  609. 'array' => false,
  610. 'cardinality' => '0..1'
  611. ),
  612. 'SearchQuery' =>
  613. array(
  614. 'required' => false,
  615. 'type' => 'string',
  616. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  617. 'array' => false,
  618. 'cardinality' => '0..1'
  619. ),
  620. 'QueryKeywords' =>
  621. array(
  622. 'required' => false,
  623. 'type' => 'string',
  624. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  625. 'array' => false,
  626. 'cardinality' => '0..1'
  627. ),
  628. 'CategoryID' =>
  629. array(
  630. 'required' => false,
  631. 'type' => 'string',
  632. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  633. 'array' => false,
  634. 'cardinality' => '0..1'
  635. ),
  636. 'ItemSort' =>
  637. array(
  638. 'required' => false,
  639. 'type' => 'SimpleItemSortCodeType',
  640. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  641. 'array' => false,
  642. 'cardinality' => '0..1'
  643. ),
  644. 'SortOrder' =>
  645. array(
  646. 'required' => false,
  647. 'type' => 'SortOrderCodeType',
  648. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  649. 'array' => false,
  650. 'cardinality' => '0..1'
  651. ),
  652. 'EndTimeFrom' =>
  653. array(
  654. 'required' => false,
  655. 'type' => 'dateTime',
  656. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  657. 'array' => false,
  658. 'cardinality' => '0..1'
  659. ),
  660. 'EndTimeTo' =>
  661. array(
  662. 'required' => false,
  663. 'type' => 'dateTime',
  664. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  665. 'array' => false,
  666. 'cardinality' => '0..1'
  667. ),
  668. 'MaxDistance' =>
  669. array(
  670. 'required' => false,
  671. 'type' => 'int',
  672. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  673. 'array' => false,
  674. 'cardinality' => '0..1'
  675. ),
  676. 'PostalCode' =>
  677. array(
  678. 'required' => false,
  679. 'type' => 'string',
  680. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  681. 'array' => false,
  682. 'cardinality' => '0..1'
  683. ),
  684. 'ItemType' =>
  685. array(
  686. 'required' => false,
  687. 'type' => 'ItemTypeCodeType',
  688. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  689. 'array' => false,
  690. 'cardinality' => '0..1'
  691. ),
  692. 'PriceMax' =>
  693. array(
  694. 'required' => false,
  695. 'type' => 'AmountType',
  696. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  697. 'array' => false,
  698. 'cardinality' => '0..1'
  699. ),
  700. 'PriceMin' =>
  701. array(
  702. 'required' => false,
  703. 'type' => 'AmountType',
  704. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  705. 'array' => false,
  706. 'cardinality' => '0..1'
  707. ),
  708. 'Currency' =>
  709. array(
  710. 'required' => false,
  711. 'type' => 'CurrencyCodeType',
  712. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  713. 'array' => false,
  714. 'cardinality' => '0..1'
  715. ),
  716. 'BidCountMax' =>
  717. array(
  718. 'required' => false,
  719. 'type' => 'int',
  720. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  721. 'array' => false,
  722. 'cardinality' => '0..1'
  723. ),
  724. 'BidCountMin' =>
  725. array(
  726. 'required' => false,
  727. 'type' => 'int',
  728. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  729. 'array' => false,
  730. 'cardinality' => '0..1'
  731. ),
  732. 'SearchFlag' =>
  733. array(
  734. 'required' => false,
  735. 'type' => 'SearchFlagCodeType',
  736. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  737. 'array' => true,
  738. 'cardinality' => '0..*'
  739. ),
  740. 'PaymentMethod' =>
  741. array(
  742. 'required' => false,
  743. 'type' => 'PaymentMethodSearchCodeType',
  744. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  745. 'array' => false,
  746. 'cardinality' => '0..1'
  747. ),
  748. 'PreferredLocation' =>
  749. array(
  750. 'required' => false,
  751. 'type' => 'PreferredLocationCodeType',
  752. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  753. 'array' => false,
  754. 'cardinality' => '0..1'
  755. ),
  756. 'SellerID' =>
  757. array(
  758. 'required' => false,
  759. 'type' => 'string',
  760. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  761. 'array' => true,
  762. 'cardinality' => '0..*'
  763. ),
  764. 'SellerIDExclude' =>
  765. array(
  766. 'required' => false,
  767. 'type' => 'string',
  768. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  769. 'array' => true,
  770. 'cardinality' => '0..*'
  771. ),
  772. 'ItemsAvailableTo' =>
  773. array(
  774. 'required' => false,
  775. 'type' => 'CountryCodeType',
  776. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  777. 'array' => false,
  778. 'cardinality' => '0..1'
  779. ),
  780. 'ItemsLocatedIn' =>
  781. array(
  782. 'required' => false,
  783. 'type' => 'CountryCodeType',
  784. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  785. 'array' => false,
  786. 'cardinality' => '0..1'
  787. ),
  788. 'SellerBusinessType' =>
  789. array(
  790. 'required' => false,
  791. 'type' => 'SellerBusinessCodeType',
  792. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  793. 'array' => false,
  794. 'cardinality' => '0..1'
  795. ),
  796. 'Condition' =>
  797. array(
  798. 'required' => false,
  799. 'type' => 'ItemConditionCodeType',
  800. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  801. 'array' => false,
  802. 'cardinality' => '0..1'
  803. ),
  804. 'Quantity' =>
  805. array(
  806. 'required' => false,
  807. 'type' => 'int',
  808. 'nsURI' => 'http://www.w3.org/2001/XMLSchema',
  809. 'array' => false,
  810. 'cardinality' => '0..1'
  811. ),
  812. 'QuantityOperator' =>
  813. array(
  814. 'required' => false,
  815. 'type' => 'QuantityOperatorCodeType',
  816. 'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
  817. 'array' => false,
  818. 'cardinality' => '0..1'
  819. )
  820. ));
  821. }
  822. }
  823. ?>