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

24 lines
483 B
PHP
Raw Normal View History

2018-11-25 23:12:42 +01:00
<?php
namespace Infinito\Attribut;
2018-11-25 23:12:42 +01:00
use Infinito\Entity\Meta\Relation\Parent\ParentRelationInterface;
2018-11-25 23:12:42 +01:00
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;
}
}