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

24 lines
473 B
PHP
Raw Normal View History

2018-11-25 23:12:42 +01:00
<?php
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;
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;
}
}