<?php
/**
* Inheritance: no
* Variants: no
Fields Summary:
- image [image]
- name [input]
- position [input]
- tel [input]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Team\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Team\Listing|\Pimcore\Model\DataObject\Team|null getByImage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Team\Listing|\Pimcore\Model\DataObject\Team|null getByName($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Team\Listing|\Pimcore\Model\DataObject\Team|null getByPosition($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Team\Listing|\Pimcore\Model\DataObject\Team|null getByTel($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Team extends Concrete
{
protected $o_classId = "Team";
protected $o_className = "Team";
protected $image;
protected $name;
protected $position;
protected $tel;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Team
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get image - Bild
* @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 - Bild
* @param \Pimcore\Model\Asset\Image|null $image
* @return \Pimcore\Model\DataObject\Team
*/
public function setImage(?\Pimcore\Model\Asset\Image $image)
{
$this->image = $image;
return $this;
}
/**
* 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\Team
*/
public function setName(?string $name)
{
$this->name = $name;
return $this;
}
/**
* Get position - Position
* @return string|null
*/
public function getPosition(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("position");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->position;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set position - Position
* @param string|null $position
* @return \Pimcore\Model\DataObject\Team
*/
public function setPosition(?string $position)
{
$this->position = $position;
return $this;
}
/**
* Get tel - Tel
* @return string|null
*/
public function getTel(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("tel");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->tel;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set tel - Tel
* @param string|null $tel
* @return \Pimcore\Model\DataObject\Team
*/
public function setTel(?string $tel)
{
$this->tel = $tel;
return $this;
}
}