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

24 lines
479 B
PHP
Raw Normal View History

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