<?php/** * Inheritance: no * Variants: no * * Fields Summary: * - year [input] * - text [textarea] */namespace Pimcore\Model\DataObject;use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;use Pimcore\Model\DataObject\PreGetValueHookInterface;/*** @method static \Pimcore\Model\DataObject\Geschichte\Listing getList(array $config = [])* @method static \Pimcore\Model\DataObject\Geschichte\Listing|\Pimcore\Model\DataObject\Geschichte|null getByYear($value, $limit = 0, $offset = 0, $objectTypes = null)* @method static \Pimcore\Model\DataObject\Geschichte\Listing|\Pimcore\Model\DataObject\Geschichte|null getByText($value, $limit = 0, $offset = 0, $objectTypes = null)*/class Geschichte extends Concrete{protected $o_classId = "Geschichte";protected $o_className = "Geschichte";protected $year;protected $text;/*** @param array $values* @return \Pimcore\Model\DataObject\Geschichte*/public static function create($values = array()) { $object = new static(); $object->setValues($values); return $object;}/*** Get year - Year* @return string|null*/public function getYear(): ?string{ if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { $preValue = $this->preGetValue("year"); if ($preValue !== null) { return $preValue; } } $data = $this->year; if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) { return $data->getPlain(); } return $data;}/*** Set year - Year* @param string|null $year* @return \Pimcore\Model\DataObject\Geschichte*/public function setYear(?string $year){ $this->year = $year; return $this;}/*** Get text - Text* @return string|null*/public function getText(): ?string{ if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { $preValue = $this->preGetValue("text"); if ($preValue !== null) { return $preValue; } } $data = $this->text; if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) { return $data->getPlain(); } return $data;}/*** Set text - Text* @param string|null $text* @return \Pimcore\Model\DataObject\Geschichte*/public function setText(?string $text){ $this->text = $text; return $this;}}