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

27 lines
425 B
PHP
Raw Normal View History

2018-10-27 14:56:26 +02:00
<?php
2019-01-20 10:41:58 +01:00
namespace App\Attribut;
2018-10-27 14:56:26 +02:00
2018-11-25 23:40:36 +01:00
use App\Entity\Meta\Relation\RelationInterface;
2018-10-27 14:56:26 +02:00
/**
* @author kevinfrantz
*/
trait RelationAttribut
{
/**
* @var RelationInterface
*/
protected $relation;
public function setRelation(RelationInterface $relation): void
{
$this->relation = $relation;
}
public function getRelation(): RelationInterface
{
return $this->relation;
}
}