Source of file LogicalIdEntity.php

Size: 0,659 Bytes - Last Modified: 2020-10-24T02:46:31+00:00

/home/travis/build/NextDom/nextdom-core/src/Model/Entity/Parents/LogicalIdEntity.php

12345678910111213141516171819202122232425262728293031323334
<?php

namespace NextDom\Model\Entity\Parents;

trait LogicalIdEntity
{
    abstract public function updateChangeState($oldValue, $newValue);

    /**
     * @var string
     *
     * @ORM\Column(name="logicalId", type="string", length=127, nullable=true)
     */
    protected $logicalId;

    /**
     * @return string
     */
    public function getLogicalId()
    {
        return $this->logicalId;
    }

    /**
     * @param $_logicalId
     * @return $this
     */
    public function setLogicalId($_logicalId)
    {
        $this->updateChangeState($this->logicalId, $_logicalId);
        $this->logicalId = $_logicalId;
        return $this;
    }
}