Refactored relation and node draft

This commit is contained in:
Kevin Frantz
2018-10-27 14:56:26 +02:00
parent 7734f57c63
commit a95ff0497e
24 changed files with 260 additions and 160 deletions

View File

@@ -1,26 +0,0 @@
<?php
namespace App\Entity\Attribut;
use App\Entity\NodeInterface;
/**
* @author kevinfrantz
*/
trait NodeAttribut
{
/**
* @var NodeInterface
*/
protected $node;
public function setNode(NodeInterface $node): void
{
$this->node = $node;
}
public function getNode(): NodeInterface
{
return $this->node;
}
}

View File

@@ -1,15 +0,0 @@
<?php
namespace App\Entity\Attribut;
use App\Entity\NodeInterface;
/**
* @author kevinfrantz
*/
interface NodeAttributInterface
{
public function setNode(NodeInterface $node): void;
public function getNode(): NodeInterface;
}

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Entity\Attribut;
use App\Entity\RelationInterface;
/**
* @author kevinfrantz
*/
trait RelationAttribut
{
/**
* @var RelationInterface
*/
protected $relation;
public function setRelation(RelationInterface $relation): void
{
$this->relation = $relation;
}
public function getRelation(): RelationInterface
{
return $this->relation;
}
}

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Entity\Attribut;
use App\Entity\RelationInterface;
/**
* @author kevinfrantz
*/
interface RelationAttributInterface
{
public function setRelation(RelationInterface $relation): void;
public function getRelation(): RelationInterface;
}