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

27 lines
418 B
PHP
Raw Normal View History

2018-10-27 14:56:26 +02:00
<?php
namespace App\Entity\Attribut;
use App\Entity\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;
}
}