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

39 lines
669 B
PHP
Raw Normal View History

2018-10-27 14:56:26 +02:00
<?php
namespace Infinito\Attribut;
2018-10-27 14:56:26 +02:00
use Infinito\Entity\Meta\Relation\RelationInterface;
2018-10-27 14:56:26 +02:00
/**
* @author kevinfrantz
*
* @see RelationAttributInterface
2018-10-27 14:56:26 +02:00
*/
trait RelationAttribut
{
/**
* @var RelationInterface
*/
protected $relation;
/**
* @param RelationInterface $relation
*
* @see RelationAttributInterface
*/
2018-10-27 14:56:26 +02:00
public function setRelation(RelationInterface $relation): void
{
$this->relation = $relation;
}
/**
* @see RelationAttributInterface
*
* @return RelationInterface
*/
2018-10-27 14:56:26 +02:00
public function getRelation(): RelationInterface
{
return $this->relation;
}
}