mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-14 06:07:18 +02:00
Optimized law draft
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
namespace Entity\Attribut;
|
||||
|
||||
use App\Entity\RightInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
@@ -8,8 +10,8 @@ namespace Entity\Attribut;
|
||||
*/
|
||||
interface RightAttributInterface
|
||||
{
|
||||
public function setRight(string $right):void;
|
||||
public function setRight(RightInterface $right):void;
|
||||
|
||||
public function getRight():string;
|
||||
public function getRight():RightInterface;
|
||||
}
|
||||
|
||||
|
17
application/src/Entity/Attribut/RightsAttributInterface.php
Normal file
17
application/src/Entity/Attribut/RightsAttributInterface.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface RightsAttributInterface
|
||||
{
|
||||
public function setRights(ArrayCollection $rights):void;
|
||||
|
||||
public function getRights():ArrayCollection;
|
||||
}
|
||||
|
26
application/src/Entity/Attribut/RightsAttribute.php
Normal file
26
application/src/Entity/Attribut/RightsAttribute.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
trait RightsAttribute {
|
||||
|
||||
/**
|
||||
* @var ArrayCollection
|
||||
*/
|
||||
protected $rights;
|
||||
|
||||
public function setRights(ArrayCollection $rights):void{
|
||||
$this->rights = $rights;
|
||||
}
|
||||
|
||||
public function getRights():ArrayCollection{
|
||||
return $this->rights;
|
||||
}
|
||||
}
|
||||
|
24
application/src/Entity/Attribut/TypeAttribut.php
Normal file
24
application/src/Entity/Attribut/TypeAttribut.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
trait TypeAttribut {
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $type;
|
||||
|
||||
public function setType(string $right):void{
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
public function getType():string{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
15
application/src/Entity/Attribut/TypeAttributInterface.php
Normal file
15
application/src/Entity/Attribut/TypeAttributInterface.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface TypeAttributInterface
|
||||
{
|
||||
public function setType(string $right):void;
|
||||
|
||||
public function getType():string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user