Source of file TypeEntity.php
Size: 0,696 Bytes - Last Modified: 2020-10-24T02:46:31+00:00
/home/travis/build/NextDom/nextdom-core/src/Model/Entity/Parents/TypeEntity.php
123456789101112131415161718192021222324252627282930313233343536373839 | <?php namespace NextDom\Model\Entity\Parents; trait TypeEntity { abstract public function updateChangeState($oldValue, $newValue); /** * @var string * * @ORM\Column(name="type", type="string", length=127, nullable=true) */ protected $type; /** * @return string */ public function getType() { return $this->type; } /** * @param $_type * @return $this */ public function setType($_type) { $this->updateChangeState($this->type, $_type); $this->type = $_type; return $this; } public function isType($typeToTest) { return $this->type === $typeToTest; } } |