infinito/application/symfony/src/Attribut/RelationAttribut.php
2019-01-20 10:41:58 +01:00

27 lines
425 B
PHP

<?php
namespace App\Attribut;
use App\Entity\Meta\Relation\RelationInterface;
/**
* @author kevinfrantz
*/
trait RelationAttribut
{
/**
* @var RelationInterface
*/
protected $relation;
public function setRelation(RelationInterface $relation): void
{
$this->relation = $relation;
}
public function getRelation(): RelationInterface
{
return $this->relation;
}
}