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

35 lines
692 B
PHP
Raw Normal View History

2018-11-25 23:12:42 +01:00
<?php
namespace Infinito\Attribut;
2018-11-25 23:12:42 +01:00
use Infinito\Entity\Meta\Relation\Parent\CreatorRelationInterface;
2018-11-25 23:12:42 +01:00
/**
* @author kevinfrantz
*
* @see CreatorRelationAttributInterface
*/
2018-11-25 23:12:42 +01:00
trait CreatorRelationAttribut
{
/**
* @var CreatorRelationInterface
*/
protected $creatorRelation;
/**
* @param CreatorRelationInterface $creatorRelation
*/
public function setCreatorRelation(CreatorRelationInterface $creatorRelation)
{
2018-11-25 23:12:42 +01:00
$this->creatorRelation = $creatorRelation;
}
/**
* @return CreatorRelationInterface
*/
public function getCreatorRelation(): CreatorRelationInterface
{
2018-11-25 23:12:42 +01:00
return $this->creatorRelation;
}
}