<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - carMake [input]
* - carModel [input]
* - ageType [input]
* - carAgeType [input]
* - carType [input]
* - registrationYearStart [input]
* - registrationYearEnd [input]
* - monthlyRateMin [input]
* - monthlyRateMax [input]
* - kmDriven [input]
* - transmission [input]
* - fuel [input]
* - color [input]
* - carLocation [input]
* - carAvailability [input]
* - sortOrder [input]
* - qualityBadge [input]
* - campaignName [input]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarMake($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarModel($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByAgeType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarAgeType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByRegistrationYearStart($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByRegistrationYearEnd($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByMonthlyRateMin($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByMonthlyRateMax($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByKmDriven($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByTransmission($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByFuel($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByColor($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarLocation($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCarAvailability($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getBySortOrder($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByQualityBadge($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\VehicleFilter\Listing|\Pimcore\Model\DataObject\VehicleFilter|null getByCampaignName($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class VehicleFilter extends Concrete
{
protected $o_classId = "vehicleFilter";
protected $o_className = "vehicleFilter";
protected $carMake;
protected $carModel;
protected $ageType;
protected $carAgeType;
protected $carType;
protected $registrationYearStart;
protected $registrationYearEnd;
protected $monthlyRateMin;
protected $monthlyRateMax;
protected $kmDriven;
protected $transmission;
protected $fuel;
protected $color;
protected $carLocation;
protected $carAvailability;
protected $sortOrder;
protected $qualityBadge;
protected $campaignName;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get carMake - Car _make
* @return string|null
*/
public function getCarMake(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("carMake");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->carMake;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set carMake - Car _make
* @param string|null $carMake
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setCarMake(?string $carMake)
{
$this->carMake = $carMake;
return $this;
}
/**
* Get carModel - model
* @return string|null
*/
public function getCarModel(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("carModel");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->carModel;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set carModel - model
* @param string|null $carModel
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setCarModel(?string $carModel)
{
$this->carModel = $carModel;
return $this;
}
/**
* Get ageType - model
* @return string|null
*/
public function getAgeType(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("ageType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->ageType;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set ageType - model
* @param string|null $ageType
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setAgeType(?string $ageType)
{
$this->ageType = $ageType;
return $this;
}
/**
* Get carAgeType - model
* @return string|null
*/
public function getCarAgeType(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("carAgeType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->carAgeType;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set carAgeType - model
* @param string|null $carAgeType
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setCarAgeType(?string $carAgeType)
{
$this->carAgeType = $carAgeType;
return $this;
}
/**
* Get carType - model
* @return string|null
*/
public function getCarType(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("carType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->carType;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set carType - model
* @param string|null $carType
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setCarType(?string $carType)
{
$this->carType = $carType;
return $this;
}
/**
* Get registrationYearStart - Registration Year Start
* @return string|null
*/
public function getRegistrationYearStart(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("registrationYearStart");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->registrationYearStart;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set registrationYearStart - Registration Year Start
* @param string|null $registrationYearStart
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setRegistrationYearStart(?string $registrationYearStart)
{
$this->registrationYearStart = $registrationYearStart;
return $this;
}
/**
* Get registrationYearEnd - Registration Year End
* @return string|null
*/
public function getRegistrationYearEnd(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("registrationYearEnd");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->registrationYearEnd;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set registrationYearEnd - Registration Year End
* @param string|null $registrationYearEnd
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setRegistrationYearEnd(?string $registrationYearEnd)
{
$this->registrationYearEnd = $registrationYearEnd;
return $this;
}
/**
* Get monthlyRateMin - Monthly Rate Min
* @return string|null
*/
public function getMonthlyRateMin(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("monthlyRateMin");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->monthlyRateMin;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set monthlyRateMin - Monthly Rate Min
* @param string|null $monthlyRateMin
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setMonthlyRateMin(?string $monthlyRateMin)
{
$this->monthlyRateMin = $monthlyRateMin;
return $this;
}
/**
* Get monthlyRateMax - Monthly Rate Max
* @return string|null
*/
public function getMonthlyRateMax(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("monthlyRateMax");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->monthlyRateMax;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set monthlyRateMax - Monthly Rate Max
* @param string|null $monthlyRateMax
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setMonthlyRateMax(?string $monthlyRateMax)
{
$this->monthlyRateMax = $monthlyRateMax;
return $this;
}
/**
* Get kmDriven - Km Driven
* @return string|null
*/
public function getKmDriven(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("kmDriven");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->kmDriven;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set kmDriven - Km Driven
* @param string|null $kmDriven
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setKmDriven(?string $kmDriven)
{
$this->kmDriven = $kmDriven;
return $this;
}
/**
* Get transmission - Transmission
* @return string|null
*/
public function getTransmission(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("transmission");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->transmission;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set transmission - Transmission
* @param string|null $transmission
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setTransmission(?string $transmission)
{
$this->transmission = $transmission;
return $this;
}
/**
* Get fuel - Fuel
* @return string|null
*/
public function getFuel(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("fuel");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->fuel;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set fuel - Fuel
* @param string|null $fuel
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setFuel(?string $fuel)
{
$this->fuel = $fuel;
return $this;
}
/**
* Get color - Color
* @return string|null
*/
public function getColor(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("color");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->color;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set color - Color
* @param string|null $color
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setColor(?string $color)
{
$this->color = $color;
return $this;
}
/**
* Get carLocation - Car Location
* @return string|null
*/
public function getCarLocation(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("carLocation");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->carLocation;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set carLocation - Car Location
* @param string|null $carLocation
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setCarLocation(?string $carLocation)
{
$this->carLocation = $carLocation;
return $this;
}
/**
* Get carAvailability - Car Availability
* @return string|null
*/
public function getCarAvailability(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("carAvailability");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->carAvailability;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set carAvailability - Car Availability
* @param string|null $carAvailability
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setCarAvailability(?string $carAvailability)
{
$this->carAvailability = $carAvailability;
return $this;
}
/**
* Get sortOrder - Sort Order
* @return string|null
*/
public function getSortOrder(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sortOrder");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->sortOrder;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set sortOrder - Sort Order
* @param string|null $sortOrder
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setSortOrder(?string $sortOrder)
{
$this->sortOrder = $sortOrder;
return $this;
}
/**
* Get qualityBadge - Quality Badge
* @return string|null
*/
public function getQualityBadge(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("qualityBadge");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->qualityBadge;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set qualityBadge - Quality Badge
* @param string|null $qualityBadge
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setQualityBadge(?string $qualityBadge)
{
$this->qualityBadge = $qualityBadge;
return $this;
}
/**
* Get campaignName - campaignName
* @return string|null
*/
public function getCampaignName(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("campaignName");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->campaignName;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set campaignName - campaignName
* @param string|null $campaignName
* @return \Pimcore\Model\DataObject\VehicleFilter
*/
public function setCampaignName(?string $campaignName)
{
$this->campaignName = $campaignName;
return $this;
}
}