mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-15 14:46:04 +02:00
Continued integration of CreatorParent
This commit is contained in:
21
application/src/Entity/Attribut/CreatorRelationAttribut.php
Normal file
21
application/src/Entity/Attribut/CreatorRelationAttribut.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\CreatorRelationInterface;
|
||||
|
||||
trait CreatorRelationAttribut
|
||||
{
|
||||
/**
|
||||
* @var CreatorRelationInterface
|
||||
*/
|
||||
protected $creatorRelation;
|
||||
|
||||
public function setCreatorRelation(CreatorRelationInterface $creatorRelation){
|
||||
$this->creatorRelation = $creatorRelation;
|
||||
}
|
||||
|
||||
public function getCreatorRelation():CreatorRelationInterface{
|
||||
return $this->creatorRelation;
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\CreatorRelationInterface;
|
||||
|
||||
interface CreatorRelationAttributInterface
|
||||
{
|
||||
public function setCreatorRelation(CreatorRelationInterface $creatorRelation);
|
||||
|
||||
public function getCreatorRelation():CreatorRelationInterface;
|
||||
}
|
21
application/src/Entity/Attribut/ParentRelationAttribut.php
Normal file
21
application/src/Entity/Attribut/ParentRelationAttribut.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\Parent\ParentRelationInterface;
|
||||
|
||||
trait ParentRelationAttribut
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var ParentRelationInterface
|
||||
*/
|
||||
protected $parentRelation;
|
||||
|
||||
public function setParentRelation(ParentRelationInterface $parentRelation):void{
|
||||
$this->parentRelation = $parentRelation;
|
||||
}
|
||||
|
||||
public function getParentRelation():ParentRelationInterface{
|
||||
return $this->parentRelation;
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\Parent\ParentRelationInterface;
|
||||
|
||||
interface ParentRelationAttributInterface
|
||||
{
|
||||
public function setParentRelation(ParentRelationInterface $parentRelation):void;
|
||||
|
||||
public function getParentRelation():ParentRelationInterface;
|
||||
}
|
||||
|
Reference in New Issue
Block a user