mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 14:57:28 +01:00
30 lines
489 B
PHP
30 lines
489 B
PHP
|
<?php
|
||
|
namespace Entity\Attribut;
|
||
|
|
||
|
use Doctrine\Common\Collections\ArrayCollection;
|
||
|
use App\Entity\NodeInterface;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author kevinfrantz
|
||
|
*
|
||
|
*/
|
||
|
trait ParentAttribut {
|
||
|
/**
|
||
|
*
|
||
|
* @var ArrayCollection|NodeInterface[]
|
||
|
*/
|
||
|
protected $parents;
|
||
|
|
||
|
public function getParents(): ArrayCollection
|
||
|
{
|
||
|
return $this->parents;
|
||
|
}
|
||
|
|
||
|
public function setParents(ArrayCollection $parents): void
|
||
|
{
|
||
|
$this->parents = $parents;
|
||
|
}
|
||
|
}
|
||
|
|