Optimized dom management

This commit is contained in:
Kevin Frantz
2019-02-25 16:38:54 +01:00
parent 0b50b1df9a
commit be9e22577c
13 changed files with 259 additions and 9 deletions

View File

@@ -4,6 +4,8 @@ namespace Infinito\Attribut;
/**
* @author kevinfrantz
*
* @see GrantAttributInterface
*/
trait GrantAttribut
{
@@ -12,11 +14,17 @@ trait GrantAttribut
*/
protected $grant;
/**
* @param bool $grant
*/
public function setGrant(bool $grant): void
{
$this->grant = $grant;
}
/**
* @return bool
*/
public function getGrant(): bool
{
return $this->grant;

View File

@@ -7,7 +7,18 @@ namespace Infinito\Attribut;
*/
interface GrantAttributInterface
{
/**
* @var string
*/
const GRANT_ATTRIBUT_NAME = 'grant';
/**
* @param bool $grant
*/
public function setGrant(bool $grant): void;
/**
* @return bool
*/
public function getGrant(): bool;
}

View File

@@ -3,6 +3,7 @@
namespace Infinito\Attribut;
use Doctrine\Common\Collections\Collection;
use Infinito\Entity\Meta\RightInterface;
/**
* @author kevinfrantz
@@ -16,11 +17,17 @@ trait RightsAttribut
*/
protected $rights;
/**
* @param Collection|RightInterface[] $rights
*/
public function setRights(Collection $rights): void
{
$this->rights = $rights;
}
/**
* @return Collection|RightInterface[]
*/
public function getRights(): Collection
{
return $this->rights;

View File

@@ -10,6 +10,9 @@ use Infinito\Entity\Meta\RightInterface;
*/
interface RightsAttributInterface
{
/**
* @var string
*/
const RIGHTS_ATTRIBUT_NAME = 'rights';
/**

View File

@@ -6,6 +6,8 @@ use Infinito\Entity\Source\SourceInterface;
/**
* @author kevinfrantz
*
* @see SourceAttributInterface
*/
trait SourceAttribut
{
@@ -14,11 +16,17 @@ trait SourceAttribut
*/
protected $source;
/**
* @return SourceInterface
*/
public function getSource(): SourceInterface
{
return $this->source;
}
/**
* @param SourceInterface $source
*/
public function setSource(SourceInterface $source): void
{
$this->source = $source;

View File

@@ -9,7 +9,18 @@ use Infinito\Entity\Source\SourceInterface;
*/
interface SourceAttributInterface
{
/**
* @var string
*/
const SOURCE_ATTRIBUT_NAME = 'source';
/**
* @return SourceInterface
*/
public function getSource(): SourceInterface;
/**
* @param SourceInterface $source
*/
public function setSource(SourceInterface $source): void;
}