<?php/** * Inheritance: no * Variants: no * * Fields Summary: * - image [image] * - headline [input] * - text [textarea] */namespace Pimcore\Model\DataObject;use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;use Pimcore\Model\DataObject\PreGetValueHookInterface;/*** @method static \Pimcore\Model\DataObject\Benefits\Listing getList(array $config = [])* @method static \Pimcore\Model\DataObject\Benefits\Listing|\Pimcore\Model\DataObject\Benefits|null getByImage($value, $limit = 0, $offset = 0, $objectTypes = null)* @method static \Pimcore\Model\DataObject\Benefits\Listing|\Pimcore\Model\DataObject\Benefits|null getByHeadline($value, $limit = 0, $offset = 0, $objectTypes = null)* @method static \Pimcore\Model\DataObject\Benefits\Listing|\Pimcore\Model\DataObject\Benefits|null getByText($value, $limit = 0, $offset = 0, $objectTypes = null)*/class Benefits extends Concrete{protected $o_classId = "Benefits";protected $o_className = "Benefits";protected $image;protected $headline;protected $text;/*** @param array $values* @return \Pimcore\Model\DataObject\Benefits*/public static function create($values = array()) { $object = new static(); $object->setValues($values); return $object;}/*** 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\Benefits*/public function setImage(?\Pimcore\Model\Asset\Image $image){ $this->image = $image; return $this;}/*** Get headline - Headline* @return string|null*/public function getHeadline(): ?string{ if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { $preValue = $this->preGetValue("headline"); if ($preValue !== null) { return $preValue; } } $data = $this->headline; if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) { return $data->getPlain(); } return $data;}/*** Set headline - Headline* @param string|null $headline* @return \Pimcore\Model\DataObject\Benefits*/public function setHeadline(?string $headline){ $this->headline = $headline; 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\Benefits*/public function setText(?string $text){ $this->text = $text; return $this;}}