mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized law draft
This commit is contained in:
34
application/src/Entity/Right.php
Normal file
34
application/src/Entity/Right.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
namespace App\Entity;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Entity\Attribut\TypeAttribut;
|
||||
use App\DBAL\Types\RightType;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Fresh\DoctrineEnumBundle\Validator\Constraints as DoctrineAssert;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
* @ORM\Table(name="right")
|
||||
* @ORM\Entity(repositoryClass="App\Repository\RightRepository")
|
||||
*/
|
||||
class Right extends AbstractEntity implements RightInterface
|
||||
{
|
||||
use TypeAttribut;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="type", type="RightType", nullable=false)
|
||||
* @DoctrineAssert\Enum(entity="App\DBAL\Types\RightType")
|
||||
* @var string
|
||||
*/
|
||||
protected $type;
|
||||
|
||||
public function isGranted(NodeInterface $node): bool
|
||||
{}
|
||||
|
||||
public function setPermissions(ArrayCollection $permissions): void
|
||||
{}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user