Substituted whitelist and blacklist attribute trough grant attribute

This commit is contained in:
Kevin Frantz
2018-09-14 13:33:56 +02:00
parent 043c8d45b7
commit f66cb4a8ce
4 changed files with 43 additions and 16 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Entity\Attribut;
/**
* @author kevinfrantz
*/
trait GrantAttribut
{
/**
* @var bool
*/
protected $grant;
public function setGrant(bool $grant): void
{
$this->grant = $grant;
}
public function getGrant(): bool
{
return $this->grant;
}
}

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Entity\Attribut;
/**
* @author kevinfrantz
*/
interface GrantAttributInterface
{
public function setGrant(bool $grant): void;
public function getGrant(): bool;
}