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