var/classes/DataObject/VehicleFilter.php line 55

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - carMake [input]
  8.  * - carModel [input]
  9.  * - ageType [input]
  10.  * - carAgeType [input]
  11.  * - carType [input]
  12.  * - registrationYearStart [input]
  13.  * - registrationYearEnd [input]
  14.  * - monthlyRateMin [input]
  15.  * - monthlyRateMax [input]
  16.  * - kmDriven [input]
  17.  * - transmission [input]
  18.  * - fuel [input]
  19.  * - color [input]
  20.  * - carLocation [input]
  21.  * - carAvailability [input]
  22.  * - sortOrder [input]
  23.  * - qualityBadge [input]
  24.  * - campaignName [input]
  25.  */
  26. namespace Pimcore\Model\DataObject;
  27. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  28. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  29. /**
  30. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing getList(array $config = [])
  31. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarMake($value, $limit = 0, $offset = 0, $objectTypes = null)
  32. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarModel($value, $limit = 0, $offset = 0, $objectTypes = null)
  33. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByAgeType($value, $limit = 0, $offset = 0, $objectTypes = null)
  34. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarAgeType($value, $limit = 0, $offset = 0, $objectTypes = null)
  35. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarType($value, $limit = 0, $offset = 0, $objectTypes = null)
  36. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByRegistrationYearStart($value, $limit = 0, $offset = 0, $objectTypes = null)
  37. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByRegistrationYearEnd($value, $limit = 0, $offset = 0, $objectTypes = null)
  38. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByMonthlyRateMin($value, $limit = 0, $offset = 0, $objectTypes = null)
  39. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByMonthlyRateMax($value, $limit = 0, $offset = 0, $objectTypes = null)
  40. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByKmDriven($value, $limit = 0, $offset = 0, $objectTypes = null)
  41. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByTransmission($value, $limit = 0, $offset = 0, $objectTypes = null)
  42. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByFuel($value, $limit = 0, $offset = 0, $objectTypes = null)
  43. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByColor($value, $limit = 0, $offset = 0, $objectTypes = null)
  44. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarLocation($value, $limit = 0, $offset = 0, $objectTypes = null)
  45. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarAvailability($value, $limit = 0, $offset = 0, $objectTypes = null)
  46. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getBySortOrder($value, $limit = 0, $offset = 0, $objectTypes = null)
  47. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByQualityBadge($value, $limit = 0, $offset = 0, $objectTypes = null)
  48. * @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCampaignName($value, $limit = 0, $offset = 0, $objectTypes = null)
  49. */
  50. class VehicleFilter extends Concrete
  51. {
  52. protected $o_classId "vehicleFilter";
  53. protected $o_className "vehicleFilter";
  54. protected $carMake;
  55. protected $carModel;
  56. protected $ageType;
  57. protected $carAgeType;
  58. protected $carType;
  59. protected $registrationYearStart;
  60. protected $registrationYearEnd;
  61. protected $monthlyRateMin;
  62. protected $monthlyRateMax;
  63. protected $kmDriven;
  64. protected $transmission;
  65. protected $fuel;
  66. protected $color;
  67. protected $carLocation;
  68. protected $carAvailability;
  69. protected $sortOrder;
  70. protected $qualityBadge;
  71. protected $campaignName;
  72. /**
  73. * @param array $values
  74. * @return \Pimcore\Model\DataObject\VehicleFilter
  75. */
  76. public static function create($values = array()) {
  77.     $object = new static();
  78.     $object->setValues($values);
  79.     return $object;
  80. }
  81. /**
  82. * Get carMake - Car _make
  83. * @return string|null
  84. */
  85. public function getCarMake(): ?string
  86. {
  87.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  88.         $preValue $this->preGetValue("carMake");
  89.         if ($preValue !== null) {
  90.             return $preValue;
  91.         }
  92.     }
  93.     $data $this->carMake;
  94.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  95.         return $data->getPlain();
  96.     }
  97.     return $data;
  98. }
  99. /**
  100. * Set carMake - Car _make
  101. * @param string|null $carMake
  102. * @return \Pimcore\Model\DataObject\VehicleFilter
  103. */
  104. public function setCarMake(?string $carMake)
  105. {
  106.     $this->carMake $carMake;
  107.     return $this;
  108. }
  109. /**
  110. * Get carModel - model
  111. * @return string|null
  112. */
  113. public function getCarModel(): ?string
  114. {
  115.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  116.         $preValue $this->preGetValue("carModel");
  117.         if ($preValue !== null) {
  118.             return $preValue;
  119.         }
  120.     }
  121.     $data $this->carModel;
  122.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  123.         return $data->getPlain();
  124.     }
  125.     return $data;
  126. }
  127. /**
  128. * Set carModel - model
  129. * @param string|null $carModel
  130. * @return \Pimcore\Model\DataObject\VehicleFilter
  131. */
  132. public function setCarModel(?string $carModel)
  133. {
  134.     $this->carModel $carModel;
  135.     return $this;
  136. }
  137. /**
  138. * Get ageType - model
  139. * @return string|null
  140. */
  141. public function getAgeType(): ?string
  142. {
  143.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  144.         $preValue $this->preGetValue("ageType");
  145.         if ($preValue !== null) {
  146.             return $preValue;
  147.         }
  148.     }
  149.     $data $this->ageType;
  150.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  151.         return $data->getPlain();
  152.     }
  153.     return $data;
  154. }
  155. /**
  156. * Set ageType - model
  157. * @param string|null $ageType
  158. * @return \Pimcore\Model\DataObject\VehicleFilter
  159. */
  160. public function setAgeType(?string $ageType)
  161. {
  162.     $this->ageType $ageType;
  163.     return $this;
  164. }
  165. /**
  166. * Get carAgeType - model
  167. * @return string|null
  168. */
  169. public function getCarAgeType(): ?string
  170. {
  171.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  172.         $preValue $this->preGetValue("carAgeType");
  173.         if ($preValue !== null) {
  174.             return $preValue;
  175.         }
  176.     }
  177.     $data $this->carAgeType;
  178.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  179.         return $data->getPlain();
  180.     }
  181.     return $data;
  182. }
  183. /**
  184. * Set carAgeType - model
  185. * @param string|null $carAgeType
  186. * @return \Pimcore\Model\DataObject\VehicleFilter
  187. */
  188. public function setCarAgeType(?string $carAgeType)
  189. {
  190.     $this->carAgeType $carAgeType;
  191.     return $this;
  192. }
  193. /**
  194. * Get carType - model
  195. * @return string|null
  196. */
  197. public function getCarType(): ?string
  198. {
  199.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  200.         $preValue $this->preGetValue("carType");
  201.         if ($preValue !== null) {
  202.             return $preValue;
  203.         }
  204.     }
  205.     $data $this->carType;
  206.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  207.         return $data->getPlain();
  208.     }
  209.     return $data;
  210. }
  211. /**
  212. * Set carType - model
  213. * @param string|null $carType
  214. * @return \Pimcore\Model\DataObject\VehicleFilter
  215. */
  216. public function setCarType(?string $carType)
  217. {
  218.     $this->carType $carType;
  219.     return $this;
  220. }
  221. /**
  222. * Get registrationYearStart - Registration Year Start
  223. * @return string|null
  224. */
  225. public function getRegistrationYearStart(): ?string
  226. {
  227.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  228.         $preValue $this->preGetValue("registrationYearStart");
  229.         if ($preValue !== null) {
  230.             return $preValue;
  231.         }
  232.     }
  233.     $data $this->registrationYearStart;
  234.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  235.         return $data->getPlain();
  236.     }
  237.     return $data;
  238. }
  239. /**
  240. * Set registrationYearStart - Registration Year Start
  241. * @param string|null $registrationYearStart
  242. * @return \Pimcore\Model\DataObject\VehicleFilter
  243. */
  244. public function setRegistrationYearStart(?string $registrationYearStart)
  245. {
  246.     $this->registrationYearStart $registrationYearStart;
  247.     return $this;
  248. }
  249. /**
  250. * Get registrationYearEnd - Registration Year End
  251. * @return string|null
  252. */
  253. public function getRegistrationYearEnd(): ?string
  254. {
  255.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  256.         $preValue $this->preGetValue("registrationYearEnd");
  257.         if ($preValue !== null) {
  258.             return $preValue;
  259.         }
  260.     }
  261.     $data $this->registrationYearEnd;
  262.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  263.         return $data->getPlain();
  264.     }
  265.     return $data;
  266. }
  267. /**
  268. * Set registrationYearEnd - Registration Year End
  269. * @param string|null $registrationYearEnd
  270. * @return \Pimcore\Model\DataObject\VehicleFilter
  271. */
  272. public function setRegistrationYearEnd(?string $registrationYearEnd)
  273. {
  274.     $this->registrationYearEnd $registrationYearEnd;
  275.     return $this;
  276. }
  277. /**
  278. * Get monthlyRateMin - Monthly Rate Min
  279. * @return string|null
  280. */
  281. public function getMonthlyRateMin(): ?string
  282. {
  283.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  284.         $preValue $this->preGetValue("monthlyRateMin");
  285.         if ($preValue !== null) {
  286.             return $preValue;
  287.         }
  288.     }
  289.     $data $this->monthlyRateMin;
  290.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  291.         return $data->getPlain();
  292.     }
  293.     return $data;
  294. }
  295. /**
  296. * Set monthlyRateMin - Monthly Rate Min
  297. * @param string|null $monthlyRateMin
  298. * @return \Pimcore\Model\DataObject\VehicleFilter
  299. */
  300. public function setMonthlyRateMin(?string $monthlyRateMin)
  301. {
  302.     $this->monthlyRateMin $monthlyRateMin;
  303.     return $this;
  304. }
  305. /**
  306. * Get monthlyRateMax - Monthly Rate Max
  307. * @return string|null
  308. */
  309. public function getMonthlyRateMax(): ?string
  310. {
  311.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  312.         $preValue $this->preGetValue("monthlyRateMax");
  313.         if ($preValue !== null) {
  314.             return $preValue;
  315.         }
  316.     }
  317.     $data $this->monthlyRateMax;
  318.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  319.         return $data->getPlain();
  320.     }
  321.     return $data;
  322. }
  323. /**
  324. * Set monthlyRateMax - Monthly Rate Max
  325. * @param string|null $monthlyRateMax
  326. * @return \Pimcore\Model\DataObject\VehicleFilter
  327. */
  328. public function setMonthlyRateMax(?string $monthlyRateMax)
  329. {
  330.     $this->monthlyRateMax $monthlyRateMax;
  331.     return $this;
  332. }
  333. /**
  334. * Get kmDriven - Km Driven
  335. * @return string|null
  336. */
  337. public function getKmDriven(): ?string
  338. {
  339.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  340.         $preValue $this->preGetValue("kmDriven");
  341.         if ($preValue !== null) {
  342.             return $preValue;
  343.         }
  344.     }
  345.     $data $this->kmDriven;
  346.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  347.         return $data->getPlain();
  348.     }
  349.     return $data;
  350. }
  351. /**
  352. * Set kmDriven - Km Driven
  353. * @param string|null $kmDriven
  354. * @return \Pimcore\Model\DataObject\VehicleFilter
  355. */
  356. public function setKmDriven(?string $kmDriven)
  357. {
  358.     $this->kmDriven $kmDriven;
  359.     return $this;
  360. }
  361. /**
  362. * Get transmission - Transmission
  363. * @return string|null
  364. */
  365. public function getTransmission(): ?string
  366. {
  367.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  368.         $preValue $this->preGetValue("transmission");
  369.         if ($preValue !== null) {
  370.             return $preValue;
  371.         }
  372.     }
  373.     $data $this->transmission;
  374.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  375.         return $data->getPlain();
  376.     }
  377.     return $data;
  378. }
  379. /**
  380. * Set transmission - Transmission
  381. * @param string|null $transmission
  382. * @return \Pimcore\Model\DataObject\VehicleFilter
  383. */
  384. public function setTransmission(?string $transmission)
  385. {
  386.     $this->transmission $transmission;
  387.     return $this;
  388. }
  389. /**
  390. * Get fuel - Fuel
  391. * @return string|null
  392. */
  393. public function getFuel(): ?string
  394. {
  395.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  396.         $preValue $this->preGetValue("fuel");
  397.         if ($preValue !== null) {
  398.             return $preValue;
  399.         }
  400.     }
  401.     $data $this->fuel;
  402.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  403.         return $data->getPlain();
  404.     }
  405.     return $data;
  406. }
  407. /**
  408. * Set fuel - Fuel
  409. * @param string|null $fuel
  410. * @return \Pimcore\Model\DataObject\VehicleFilter
  411. */
  412. public function setFuel(?string $fuel)
  413. {
  414.     $this->fuel $fuel;
  415.     return $this;
  416. }
  417. /**
  418. * Get color - Color
  419. * @return string|null
  420. */
  421. public function getColor(): ?string
  422. {
  423.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  424.         $preValue $this->preGetValue("color");
  425.         if ($preValue !== null) {
  426.             return $preValue;
  427.         }
  428.     }
  429.     $data $this->color;
  430.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  431.         return $data->getPlain();
  432.     }
  433.     return $data;
  434. }
  435. /**
  436. * Set color - Color
  437. * @param string|null $color
  438. * @return \Pimcore\Model\DataObject\VehicleFilter
  439. */
  440. public function setColor(?string $color)
  441. {
  442.     $this->color $color;
  443.     return $this;
  444. }
  445. /**
  446. * Get carLocation - Car Location
  447. * @return string|null
  448. */
  449. public function getCarLocation(): ?string
  450. {
  451.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  452.         $preValue $this->preGetValue("carLocation");
  453.         if ($preValue !== null) {
  454.             return $preValue;
  455.         }
  456.     }
  457.     $data $this->carLocation;
  458.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  459.         return $data->getPlain();
  460.     }
  461.     return $data;
  462. }
  463. /**
  464. * Set carLocation - Car Location
  465. * @param string|null $carLocation
  466. * @return \Pimcore\Model\DataObject\VehicleFilter
  467. */
  468. public function setCarLocation(?string $carLocation)
  469. {
  470.     $this->carLocation $carLocation;
  471.     return $this;
  472. }
  473. /**
  474. * Get carAvailability - Car Availability
  475. * @return string|null
  476. */
  477. public function getCarAvailability(): ?string
  478. {
  479.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  480.         $preValue $this->preGetValue("carAvailability");
  481.         if ($preValue !== null) {
  482.             return $preValue;
  483.         }
  484.     }
  485.     $data $this->carAvailability;
  486.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  487.         return $data->getPlain();
  488.     }
  489.     return $data;
  490. }
  491. /**
  492. * Set carAvailability - Car Availability
  493. * @param string|null $carAvailability
  494. * @return \Pimcore\Model\DataObject\VehicleFilter
  495. */
  496. public function setCarAvailability(?string $carAvailability)
  497. {
  498.     $this->carAvailability $carAvailability;
  499.     return $this;
  500. }
  501. /**
  502. * Get sortOrder - Sort Order
  503. * @return string|null
  504. */
  505. public function getSortOrder(): ?string
  506. {
  507.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  508.         $preValue $this->preGetValue("sortOrder");
  509.         if ($preValue !== null) {
  510.             return $preValue;
  511.         }
  512.     }
  513.     $data $this->sortOrder;
  514.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  515.         return $data->getPlain();
  516.     }
  517.     return $data;
  518. }
  519. /**
  520. * Set sortOrder - Sort Order
  521. * @param string|null $sortOrder
  522. * @return \Pimcore\Model\DataObject\VehicleFilter
  523. */
  524. public function setSortOrder(?string $sortOrder)
  525. {
  526.     $this->sortOrder $sortOrder;
  527.     return $this;
  528. }
  529. /**
  530. * Get qualityBadge - Quality Badge
  531. * @return string|null
  532. */
  533. public function getQualityBadge(): ?string
  534. {
  535.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  536.         $preValue $this->preGetValue("qualityBadge");
  537.         if ($preValue !== null) {
  538.             return $preValue;
  539.         }
  540.     }
  541.     $data $this->qualityBadge;
  542.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  543.         return $data->getPlain();
  544.     }
  545.     return $data;
  546. }
  547. /**
  548. * Set qualityBadge - Quality Badge
  549. * @param string|null $qualityBadge
  550. * @return \Pimcore\Model\DataObject\VehicleFilter
  551. */
  552. public function setQualityBadge(?string $qualityBadge)
  553. {
  554.     $this->qualityBadge $qualityBadge;
  555.     return $this;
  556. }
  557. /**
  558. * Get campaignName - campaignName
  559. * @return string|null
  560. */
  561. public function getCampaignName(): ?string
  562. {
  563.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  564.         $preValue $this->preGetValue("campaignName");
  565.         if ($preValue !== null) {
  566.             return $preValue;
  567.         }
  568.     }
  569.     $data $this->campaignName;
  570.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  571.         return $data->getPlain();
  572.     }
  573.     return $data;
  574. }
  575. /**
  576. * Set campaignName - campaignName
  577. * @param string|null $campaignName
  578. * @return \Pimcore\Model\DataObject\VehicleFilter
  579. */
  580. public function setCampaignName(?string $campaignName)
  581. {
  582.     $this->campaignName $campaignName;
  583.     return $this;
  584. }
  585. }