mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02:00
28 lines
445 B
PHP
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;
|
|
}
|
|
}
|