infinito/application/src/Entity/Attribut/RelationAttribut.php
2018-10-28 15:25:32 +01:00

27 lines
423 B
PHP

<?php
namespace App\Entity\Attribut;
use App\Entity\Meta\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;
}
}