mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-12-28 03:52:27 +00:00
Optimized Entity draft
This commit is contained in:
29
application/src/Entity/Attribut/ParentAttribut.php
Normal file
29
application/src/Entity/Attribut/ParentAttribut.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user