Refactored relation and node draft

This commit is contained in:
Kevin Frantz
2018-10-27 14:56:26 +02:00
parent 7734f57c63
commit a95ff0497e
24 changed files with 260 additions and 160 deletions

View File

@@ -0,0 +1,26 @@
<?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;
}
}