mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 14:57:28 +01:00
27 lines
418 B
PHP
27 lines
418 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|