mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 14:27:28 +01:00
39 lines
669 B
PHP
39 lines
669 B
PHP
<?php
|
|
|
|
namespace Infinito\Attribut;
|
|
|
|
use Infinito\Entity\Meta\Relation\RelationInterface;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*
|
|
* @see RelationAttributInterface
|
|
*/
|
|
trait RelationAttribut
|
|
{
|
|
/**
|
|
* @var RelationInterface
|
|
*/
|
|
protected $relation;
|
|
|
|
/**
|
|
* @param RelationInterface $relation
|
|
*
|
|
* @see RelationAttributInterface
|
|
*/
|
|
public function setRelation(RelationInterface $relation): void
|
|
{
|
|
$this->relation = $relation;
|
|
}
|
|
|
|
/**
|
|
* @see RelationAttributInterface
|
|
*
|
|
* @return RelationInterface
|
|
*/
|
|
public function getRelation(): RelationInterface
|
|
{
|
|
return $this->relation;
|
|
}
|
|
}
|