<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - name [input]
* - content [wysiwyg]
* - image [image]
* - jobs [reverseObjectRelation]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Vakteam\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Vakteam\Listing|\Pimcore\Model\DataObject\Vakteam|null getByName($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Vakteam\Listing|\Pimcore\Model\DataObject\Vakteam|null getByContent($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Vakteam\Listing|\Pimcore\Model\DataObject\Vakteam|null getByImage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Vakteam\Listing|\Pimcore\Model\DataObject\Vakteam|null getByJobs($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Vakteam extends Concrete
{
protected $o_classId = "vakteam";
protected $o_className = "Vakteam";
protected $name;
protected $content;
protected $image;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Vakteam
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get name - Name
* @return string|null
*/
public function getName(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("name");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->name;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set name - Name
* @param string|null $name
* @return \Pimcore\Model\DataObject\Vakteam
*/
public function setName(?string $name)
{
$this->name = $name;
return $this;
}
/**
* Get content - Content
* @return string|null
*/
public function getContent(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("content");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("content")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set content - Content
* @param string|null $content
* @return \Pimcore\Model\DataObject\Vakteam
*/
public function setContent(?string $content)
{
$this->content = $content;
return $this;
}
/**
* Get image - Image
* @return \Pimcore\Model\Asset\Image|null
*/
public function getImage(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("image");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->image;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set image - Image
* @param \Pimcore\Model\Asset\Image|null $image
* @return \Pimcore\Model\DataObject\Vakteam
*/
public function setImage(?\Pimcore\Model\Asset\Image $image)
{
$this->image = $image;
return $this;
}
/**
* Get jobs - Jobs
* @return \Pimcore\Model\DataObject\AbstractObject[]
*/
public function getJobs(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("jobs");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("jobs")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
}