Optimized law draft

This commit is contained in:
Kevin Frantz
2018-09-13 15:55:48 +02:00
parent 5f011f632b
commit b9f483bf7f
13 changed files with 206 additions and 12 deletions

View File

@@ -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;
}

View 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;
}

View 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;
}
}

View 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;
}
}

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Entity\Attribut;
/**
*
* @author kevinfrantz
*
*/
interface TypeAttributInterface
{
public function setType(string $right):void;
public function getType():string;
}