infinito/application/src/Entity/Attribut/ParentsAttribut.php
2018-10-03 18:20:53 +02:00

28 lines
445 B
PHP

<?php
namespace App\Entity\Attribut;
use App\Entity\NodeInterface;
use Doctrine\Common\Collections\Collection;
/**
* @author kevinfrantz
*/
trait ParentsAttribut
{
/**
* @var Collection|NodeInterface[]
*/
protected $parents;
public function getParents(): Collection
{
return $this->parents;
}
public function setParents(Collection $parents): void
{
$this->parents = $parents;
}
}