mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized dom management
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -10,6 +10,9 @@ use Infinito\Entity\Meta\RightInterface;
|
||||
*/
|
||||
interface RightsAttributInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
const RIGHTS_ATTRIBUT_NAME = 'rights';
|
||||
|
||||
/**
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user