<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - title [input]
* - company [input]
* - location [input]
* - coordinates [geopoint]
* - applicationLink [link]
* - url [link]
* - urlWithLayout [link]
* - companyDescription [wysiwyg]
* - requirements [wysiwyg]
* - notes [wysiwyg]
* - clause [wysiwyg]
* - experience [wysiwyg]
* - positionDescription [wysiwyg]
* - opportunities [wysiwyg]
* - publishDate [date]
* - expiryDate [date]
* - lastModificationDate [datetime]
* - referenceNumber [input]
* - uniqueId [input]
* - country [input]
* - countryRegion [input]
* - countryId [input]
* - countryRegionId [input]
* - jobOfferId [input]
* - customLayoutId [input]
* - lastModificationDateRaw [input]
* - department [input]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\JobOffer\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByTitle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByCompany($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByLocation($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByCompanyDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByRequirements($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByNotes($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByClause($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByExperience($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByPositionDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByOpportunities($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByPublishDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByExpiryDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByLastModificationDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByReferenceNumber($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByUniqueId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByCountry($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByCountryRegion($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByCountryId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByCountryRegionId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByJobOfferId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByCustomLayoutId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByLastModificationDateRaw($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\JobOffer\Listing|\Pimcore\Model\DataObject\JobOffer|null getByDepartment($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class JobOffer extends Concrete
{
protected $o_classId = "1";
protected $o_className = "JobOffer";
protected $title;
protected $company;
protected $location;
protected $coordinates;
protected $applicationLink;
protected $url;
protected $urlWithLayout;
protected $companyDescription;
protected $requirements;
protected $notes;
protected $clause;
protected $experience;
protected $positionDescription;
protected $opportunities;
protected $publishDate;
protected $expiryDate;
protected $lastModificationDate;
protected $referenceNumber;
protected $uniqueId;
protected $country;
protected $countryRegion;
protected $countryId;
protected $countryRegionId;
protected $jobOfferId;
protected $customLayoutId;
protected $lastModificationDateRaw;
protected $department;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\JobOffer
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get title - title
* @return string|null
*/
public function getTitle()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("title");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->title;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set title - title
* @param string|null $title
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get company - company
* @return string|null
*/
public function getCompany()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("company");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->company;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set company - company
* @param string|null $company
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setCompany($company)
{
$this->company = $company;
return $this;
}
/**
* Get location - location
* @return string|null
*/
public function getLocation()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("location");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->location;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set location - location
* @param string|null $location
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setLocation($location)
{
$this->location = $location;
return $this;
}
/**
* Get coordinates - coordinates
* @return \Pimcore\Model\DataObject\Data\GeoCoordinates|null
*/
public function getCoordinates()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("coordinates");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->coordinates;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set coordinates - coordinates
* @param \Pimcore\Model\DataObject\Data\GeoCoordinates|null $coordinates
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setCoordinates($coordinates)
{
$this->coordinates = $coordinates;
return $this;
}
/**
* Get applicationLink - applicationLink
* @return \Pimcore\Model\DataObject\Data\Link|null
*/
public function getApplicationLink()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("applicationLink");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->applicationLink;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set applicationLink - applicationLink
* @param \Pimcore\Model\DataObject\Data\Link|null $applicationLink
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setApplicationLink($applicationLink)
{
$this->applicationLink = $applicationLink;
return $this;
}
/**
* Get url - url
* @return \Pimcore\Model\DataObject\Data\Link|null
*/
public function getUrl()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("url");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->url;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set url - url
* @param \Pimcore\Model\DataObject\Data\Link|null $url
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setUrl($url)
{
$this->url = $url;
return $this;
}
/**
* Get urlWithLayout - urlWithLayout
* @return \Pimcore\Model\DataObject\Data\Link|null
*/
public function getUrlWithLayout()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("urlWithLayout");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->urlWithLayout;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set urlWithLayout - urlWithLayout
* @param \Pimcore\Model\DataObject\Data\Link|null $urlWithLayout
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setUrlWithLayout($urlWithLayout)
{
$this->urlWithLayout = $urlWithLayout;
return $this;
}
/**
* Get companyDescription - companyDescription
* @return string|null
*/
public function getCompanyDescription()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("companyDescription");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("companyDescription")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set companyDescription - companyDescription
* @param string|null $companyDescription
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setCompanyDescription($companyDescription)
{
$this->companyDescription = $companyDescription;
return $this;
}
/**
* Get requirements - requirements
* @return string|null
*/
public function getRequirements()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("requirements");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("requirements")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set requirements - requirements
* @param string|null $requirements
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setRequirements($requirements)
{
$this->requirements = $requirements;
return $this;
}
/**
* Get notes - notes
* @return string|null
*/
public function getNotes()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("notes");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("notes")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set notes - notes
* @param string|null $notes
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setNotes($notes)
{
$this->notes = $notes;
return $this;
}
/**
* Get clause - clause
* @return string|null
*/
public function getClause()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("clause");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("clause")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set clause - clause
* @param string|null $clause
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setClause($clause)
{
$this->clause = $clause;
return $this;
}
/**
* Get experience - experience
* @return string|null
*/
public function getExperience()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("experience");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("experience")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set experience - experience
* @param string|null $experience
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setExperience($experience)
{
$this->experience = $experience;
return $this;
}
/**
* Get positionDescription - positionDescription
* @return string|null
*/
public function getPositionDescription()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("positionDescription");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("positionDescription")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set positionDescription - positionDescription
* @param string|null $positionDescription
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setPositionDescription($positionDescription)
{
$this->positionDescription = $positionDescription;
return $this;
}
/**
* Get opportunities - opportunities
* @return string|null
*/
public function getOpportunities()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("opportunities");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("opportunities")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set opportunities - opportunities
* @param string|null $opportunities
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setOpportunities($opportunities)
{
$this->opportunities = $opportunities;
return $this;
}
/**
* Get publishDate - publishDate
* @return \Carbon\Carbon|null
*/
public function getPublishDate()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("publishDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->publishDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set publishDate - publishDate
* @param \Carbon\Carbon|null $publishDate
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setPublishDate($publishDate)
{
$this->publishDate = $publishDate;
return $this;
}
/**
* Get expiryDate - expiryDate
* @return \Carbon\Carbon|null
*/
public function getExpiryDate()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("expiryDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->expiryDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set expiryDate - expiryDate
* @param \Carbon\Carbon|null $expiryDate
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setExpiryDate($expiryDate)
{
$this->expiryDate = $expiryDate;
return $this;
}
/**
* Get lastModificationDate - lastModificationDate
* @return \Carbon\Carbon|null
*/
public function getLastModificationDate()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lastModificationDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lastModificationDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lastModificationDate - lastModificationDate
* @param \Carbon\Carbon|null $lastModificationDate
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setLastModificationDate($lastModificationDate)
{
$this->lastModificationDate = $lastModificationDate;
return $this;
}
/**
* Get referenceNumber - referenceNumber
* @return string|null
*/
public function getReferenceNumber()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("referenceNumber");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->referenceNumber;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set referenceNumber - referenceNumber
* @param string|null $referenceNumber
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setReferenceNumber($referenceNumber)
{
$this->referenceNumber = $referenceNumber;
return $this;
}
/**
* Get uniqueId - uniqueId
* @return string|null
*/
public function getUniqueId()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("uniqueId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->uniqueId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set uniqueId - uniqueId
* @param string|null $uniqueId
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setUniqueId($uniqueId)
{
$this->uniqueId = $uniqueId;
return $this;
}
/**
* Get country - country
* @return string|null
*/
public function getCountry()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("country");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->country;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set country - country
* @param string|null $country
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Get countryRegion - countryRegion
* @return string|null
*/
public function getCountryRegion()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("countryRegion");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->countryRegion;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set countryRegion - countryRegion
* @param string|null $countryRegion
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setCountryRegion($countryRegion)
{
$this->countryRegion = $countryRegion;
return $this;
}
/**
* Get countryId - countryId
* @return string|null
*/
public function getCountryId()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("countryId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->countryId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set countryId - countryId
* @param string|null $countryId
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setCountryId($countryId)
{
$this->countryId = $countryId;
return $this;
}
/**
* Get countryRegionId - countryRegionId
* @return string|null
*/
public function getCountryRegionId()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("countryRegionId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->countryRegionId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set countryRegionId - countryRegionId
* @param string|null $countryRegionId
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setCountryRegionId($countryRegionId)
{
$this->countryRegionId = $countryRegionId;
return $this;
}
/**
* Get jobOfferId - jobOfferId
* @return string|null
*/
public function getJobOfferId()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("jobOfferId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->jobOfferId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set jobOfferId - jobOfferId
* @param string|null $jobOfferId
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setJobOfferId($jobOfferId)
{
$this->jobOfferId = $jobOfferId;
return $this;
}
/**
* Get customLayoutId - customLayoutId
* @return string|null
*/
public function getCustomLayoutId()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("customLayoutId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->customLayoutId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set customLayoutId - customLayoutId
* @param string|null $customLayoutId
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setCustomLayoutId($customLayoutId)
{
$this->customLayoutId = $customLayoutId;
return $this;
}
/**
* Get lastModificationDateRaw - lastModificationDateRaw
* @return string|null
*/
public function getLastModificationDateRaw()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lastModificationDateRaw");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lastModificationDateRaw;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lastModificationDateRaw - lastModificationDateRaw
* @param string|null $lastModificationDateRaw
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setLastModificationDateRaw($lastModificationDateRaw)
{
$this->lastModificationDateRaw = $lastModificationDateRaw;
return $this;
}
/**
* Get department - department
* @return string|null
*/
public function getDepartment()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("department");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->department;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set department - department
* @param string|null $department
* @return \Pimcore\Model\DataObject\JobOffer
*/
public function setDepartment($department)
{
$this->department = $department;
return $this;
}
}