mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02:00
31 lines
495 B
PHP
31 lines
495 B
PHP
<?php
|
|
namespace App\Entity\Attribut;
|
|
|
|
use App\Entity\NodeInterface;
|
|
|
|
/**
|
|
*
|
|
* @author kevinfrantz
|
|
*
|
|
*/
|
|
trait NodeAttribut{
|
|
/**
|
|
* @var NodeInterface
|
|
* @OneToOne(targetEntity="Node")
|
|
* @JoinColumn(name="source", referencedColumnName="id")
|
|
*/
|
|
protected $node;
|
|
|
|
public function setNode(NodeInterface $node): void
|
|
{
|
|
$this->node = $node;
|
|
}
|
|
|
|
public function getNode(): NodeInterface
|
|
{
|
|
return $this->node;
|
|
}
|
|
|
|
}
|
|
|