infinito/application/symfony/src/Entity/Attribut/ParentRelationAttribut.php

24 lines
480 B
PHP
Raw Normal View History

2018-11-25 23:12:42 +01:00
<?php
2018-11-25 23:12:42 +01:00
namespace App\Entity\Attribut;
use App\Entity\Meta\Relation\Parent\ParentRelationInterface;
trait ParentRelationAttribut
{
/**
* @var ParentRelationInterface
*/
protected $parentRelation;
public function setParentRelation(ParentRelationInterface $parentRelation): void
{
2018-11-25 23:12:42 +01:00
$this->parentRelation = $parentRelation;
}
public function getParentRelation(): ParentRelationInterface
{
2018-11-25 23:12:42 +01:00
return $this->parentRelation;
}
}