<?php/** * Inheritance: no * Variants: no * * Fields Summary: * - image [image] * - headline [wysiwyg] * - text [wysiwyg] * - link [link] */namespace Pimcore\Model\DataObject;use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;use Pimcore\Model\DataObject\PreGetValueHookInterface;/*** @method static \Pimcore\Model\DataObject\Card\Listing getList(array $config = [])* @method static \Pimcore\Model\DataObject\Card\Listing|\Pimcore\Model\DataObject\Card|null getByImage($value, $limit = 0, $offset = 0, $objectTypes = null)* @method static \Pimcore\Model\DataObject\Card\Listing|\Pimcore\Model\DataObject\Card|null getByHeadline($value, $limit = 0, $offset = 0, $objectTypes = null)* @method static \Pimcore\Model\DataObject\Card\Listing|\Pimcore\Model\DataObject\Card|null getByText($value, $limit = 0, $offset = 0, $objectTypes = null)*/class Card extends Concrete{protected $o_classId = "MuldenContainer";protected $o_className = "Card";protected $image;protected $headline;protected $text;protected $link;/*** @param array $values* @return \Pimcore\Model\DataObject\Card*/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\Card*/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->getClass()->getFieldDefinition("headline")->preGetData($this); if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) { return $data->getPlain(); } return $data;}/*** Set headline - Headline* @param string|null $headline* @return \Pimcore\Model\DataObject\Card*/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->getClass()->getFieldDefinition("text")->preGetData($this); if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) { return $data->getPlain(); } return $data;}/*** Set text - Text* @param string|null $text* @return \Pimcore\Model\DataObject\Card*/public function setText(?string $text){ $this->text = $text; return $this;}/*** Get link - Link* @return \Pimcore\Model\DataObject\Data\Link|null*/public function getLink(): ?\Pimcore\Model\DataObject\Data\Link{ if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { $preValue = $this->preGetValue("link"); if ($preValue !== null) { return $preValue; } } $data = $this->link; if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) { return $data->getPlain(); } return $data;}/*** Set link - Link* @param \Pimcore\Model\DataObject\Data\Link|null $link* @return \Pimcore\Model\DataObject\Card*/public function setLink(?\Pimcore\Model\DataObject\Data\Link $link){ $this->link = $link; return $this;}}