mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Refactored\moved Attribut folder
This commit is contained in:
38
application/symfony/src/Attribut/ActionTypeAttribut.php
Normal file
38
application/symfony/src/Attribut/ActionTypeAttribut.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Exception\NoValidChoiceException;
|
||||
use App\DBAL\Types\ActionType;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait ActionTypeAttribut
|
||||
{
|
||||
/**
|
||||
* @see ActionType
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $actionType;
|
||||
|
||||
/**
|
||||
* @param string $actionType
|
||||
*/
|
||||
public function setActionType(string $actionType): void
|
||||
{
|
||||
if (!array_key_exists($actionType, ActionType::getChoices())) {
|
||||
throw new NoValidChoiceException('The type is not a valid action type.');
|
||||
}
|
||||
$this->actionType = $actionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getActionType(): string
|
||||
{
|
||||
return $this->actionType;
|
||||
}
|
||||
}
|
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\DBAL\Types\ActionType;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*
|
||||
* @see ActionType
|
||||
*/
|
||||
interface ActionTypeAttributInterface
|
||||
{
|
||||
/**
|
||||
* @see ActionType
|
||||
*
|
||||
* @param string $actionType
|
||||
*/
|
||||
public function setActionType(string $actionType): void;
|
||||
|
||||
/**
|
||||
* @see ActionType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getActionType(): string;
|
||||
}
|
26
application/symfony/src/Attribut/ChildsAttribut.php
Normal file
26
application/symfony/src/Attribut/ChildsAttribut.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait ChildsAttribut
|
||||
{
|
||||
/**
|
||||
* @var Collection|ChildsAttributeInterface[]
|
||||
*/
|
||||
protected $childs;
|
||||
|
||||
public function getChilds(): Collection
|
||||
{
|
||||
return $this->childs;
|
||||
}
|
||||
|
||||
public function setChilds(Collection $childs): void
|
||||
{
|
||||
$this->childs = $childs;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface ChildsAttributeInterface
|
||||
{
|
||||
public function setChilds(Collection $childs): void;
|
||||
|
||||
public function getChilds(): Collection;
|
||||
}
|
29
application/symfony/src/Attribut/CollectionAttribut.php
Normal file
29
application/symfony/src/Attribut/CollectionAttribut.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
trait CollectionAttribut
|
||||
{
|
||||
/**
|
||||
* @var Collection
|
||||
*/
|
||||
protected $collection;
|
||||
|
||||
/**
|
||||
* @return Collection
|
||||
*/
|
||||
public function getCollection(): Collection
|
||||
{
|
||||
return $this->collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Collection $collection
|
||||
*/
|
||||
public function setCollection(Collection $collection): void
|
||||
{
|
||||
$this->collection = $collection;
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
interface CollectionAttributInterface
|
||||
{
|
||||
public function getCollection(): Collection;
|
||||
|
||||
public function setCollection(Collection $collection): void;
|
||||
}
|
31
application/symfony/src/Attribut/ConditionAttribut.php
Normal file
31
application/symfony/src/Attribut/ConditionAttribut.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Logic\Operation\OperationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait ConditionAttribut
|
||||
{
|
||||
/**
|
||||
* @var OperationInterface
|
||||
*/
|
||||
protected $condition;
|
||||
|
||||
public function getCondition(): OperationInterface
|
||||
{
|
||||
return $this->condition;
|
||||
}
|
||||
|
||||
public function setCondition(OperationInterface $condition): void
|
||||
{
|
||||
$this->condition = $condition;
|
||||
}
|
||||
|
||||
public function hasCondition(): bool
|
||||
{
|
||||
return $this->condition instanceof OperationInterface;
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Logic\Operation\OperationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface ConditionAttributInterface
|
||||
{
|
||||
public function getCondition(): OperationInterface;
|
||||
|
||||
public function setCondition(OperationInterface $operation): void;
|
||||
|
||||
public function hasCondition(): bool;
|
||||
}
|
23
application/symfony/src/Attribut/CreatorRelationAttribut.php
Normal file
23
application/symfony/src/Attribut/CreatorRelationAttribut.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\Parent\CreatorRelationInterface;
|
||||
|
||||
trait CreatorRelationAttribut
|
||||
{
|
||||
/**
|
||||
* @var CreatorRelationInterface
|
||||
*/
|
||||
protected $creatorRelation;
|
||||
|
||||
public function setCreatorRelation(CreatorRelationInterface $creatorRelation)
|
||||
{
|
||||
$this->creatorRelation = $creatorRelation;
|
||||
}
|
||||
|
||||
public function getCreatorRelation(): CreatorRelationInterface
|
||||
{
|
||||
return $this->creatorRelation;
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\Parent\CreatorRelationInterface;
|
||||
|
||||
interface CreatorRelationAttributInterface
|
||||
{
|
||||
public function setCreatorRelation(CreatorRelationInterface $creatorRelation);
|
||||
|
||||
public function getCreatorRelation(): CreatorRelationInterface;
|
||||
}
|
38
application/symfony/src/Attribut/CrudAttribut.php
Normal file
38
application/symfony/src/Attribut/CrudAttribut.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Exception\NoValidChoiceException;
|
||||
use App\DBAL\Types\Meta\Right\CRUDType;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait CrudAttribut
|
||||
{
|
||||
/**
|
||||
* @see CRUDType
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $crud;
|
||||
|
||||
/**
|
||||
* @param string $crud
|
||||
*/
|
||||
public function setCrud(string $crud): void
|
||||
{
|
||||
if (!array_key_exists($crud, CRUDType::getChoices())) {
|
||||
throw new NoValidChoiceException();
|
||||
}
|
||||
$this->crud = $crud;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCrud(): string
|
||||
{
|
||||
return $this->crud;
|
||||
}
|
||||
}
|
13
application/symfony/src/Attribut/CrudAttributInterface.php
Normal file
13
application/symfony/src/Attribut/CrudAttributInterface.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface CrudAttributInterface
|
||||
{
|
||||
public function setCrud(string $crud): void;
|
||||
|
||||
public function getCrud(): string;
|
||||
}
|
23
application/symfony/src/Attribut/FirstNameSourceAttribut.php
Normal file
23
application/symfony/src/Attribut/FirstNameSourceAttribut.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Primitive\Name\FirstNameSourceInterface;
|
||||
|
||||
trait FirstNameSourceAttribut
|
||||
{
|
||||
/**
|
||||
* @var FirstNameSourceInterface
|
||||
*/
|
||||
protected $firstNameSource;
|
||||
|
||||
public function getFirstNameSource(): FirstNameSourceInterface
|
||||
{
|
||||
return $this->firstNameSource;
|
||||
}
|
||||
|
||||
public function setFirstNameSource(FirstNameSourceInterface $name): void
|
||||
{
|
||||
$this->firstNameSource = $name;
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Primitive\Name\FirstNameSourceInterface;
|
||||
|
||||
interface FirstNameSourceAttributInterface
|
||||
{
|
||||
public function getFirstNameSource(): FirstNameSourceInterface;
|
||||
|
||||
public function setFirstNameSource(FirstNameSourceInterface $name): void;
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Complex\FullPersonNameSourceInterface;
|
||||
|
||||
trait FullPersonNameSourceAttribut
|
||||
{
|
||||
/**
|
||||
* @var FullPersonNameSourceInterface
|
||||
*/
|
||||
protected $fullPersonNameSource;
|
||||
|
||||
public function getFullPersonNameSource(): FullPersonNameSourceInterface
|
||||
{
|
||||
return $this->fullPersonNameSource;
|
||||
}
|
||||
|
||||
public function setFullPersonNameSource(FullPersonNameSourceInterface $fullname): void
|
||||
{
|
||||
$this->fullPersonNameSource = $fullname;
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Complex\FullPersonNameSourceInterface;
|
||||
|
||||
interface FullPersonNameSourceAttributInterface
|
||||
{
|
||||
public function getFullPersonNameSource(): FullPersonNameSourceInterface;
|
||||
|
||||
public function setFullPersonNameSource(FullPersonNameSourceInterface $fullname): void;
|
||||
}
|
24
application/symfony/src/Attribut/GrantAttribut.php
Normal file
24
application/symfony/src/Attribut/GrantAttribut.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\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;
|
||||
}
|
||||
}
|
13
application/symfony/src/Attribut/GrantAttributInterface.php
Normal file
13
application/symfony/src/Attribut/GrantAttributInterface.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface GrantAttributInterface
|
||||
{
|
||||
public function setGrant(bool $grant): void;
|
||||
|
||||
public function getGrant(): bool;
|
||||
}
|
29
application/symfony/src/Attribut/IdAttribut.php
Normal file
29
application/symfony/src/Attribut/IdAttribut.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait IdAttribut
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
public function setId(int $id): void
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function getId(): int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function hasId(): bool
|
||||
{
|
||||
return isset($this->id);
|
||||
}
|
||||
}
|
24
application/symfony/src/Attribut/IdAttributInterface.php
Normal file
24
application/symfony/src/Attribut/IdAttributInterface.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface IdAttributInterface
|
||||
{
|
||||
/**
|
||||
* @param int $id
|
||||
*/
|
||||
public function setId(int $id): void;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getId(): int;
|
||||
|
||||
/**
|
||||
* @return bool Checks if attribute is set
|
||||
*/
|
||||
public function hasId(): bool;
|
||||
}
|
26
application/symfony/src/Attribut/LawAttribut.php
Normal file
26
application/symfony/src/Attribut/LawAttribut.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\LawInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait LawAttribut
|
||||
{
|
||||
/**
|
||||
* @var LawInterface
|
||||
*/
|
||||
protected $law;
|
||||
|
||||
public function setLaw(LawInterface $law): void
|
||||
{
|
||||
$this->law = $law;
|
||||
}
|
||||
|
||||
public function getLaw(): LawInterface
|
||||
{
|
||||
return $this->law;
|
||||
}
|
||||
}
|
15
application/symfony/src/Attribut/LawAttributInterface.php
Normal file
15
application/symfony/src/Attribut/LawAttributInterface.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\LawInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface LawAttributInterface
|
||||
{
|
||||
public function setLaw(LawInterface $law): void;
|
||||
|
||||
public function getLaw(): LawInterface;
|
||||
}
|
40
application/symfony/src/Attribut/LayerAttribut.php
Normal file
40
application/symfony/src/Attribut/LayerAttribut.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\DBAL\Types\Meta\Right\LayerType;
|
||||
use App\Exception\NoValidChoiceException;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait LayerAttribut
|
||||
{
|
||||
/**
|
||||
* @see LayerType
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $layer;
|
||||
|
||||
/**
|
||||
* @param string $layer
|
||||
*
|
||||
* @throws NoValidChoiceException
|
||||
*/
|
||||
public function setLayer(string $layer): void
|
||||
{
|
||||
if (!array_key_exists($layer, LayerType::getChoices())) {
|
||||
throw new NoValidChoiceException();
|
||||
}
|
||||
$this->layer = $layer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLayer(): string
|
||||
{
|
||||
return $this->layer;
|
||||
}
|
||||
}
|
13
application/symfony/src/Attribut/LayerAttributInterface.php
Normal file
13
application/symfony/src/Attribut/LayerAttributInterface.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface LayerAttributInterface
|
||||
{
|
||||
public function setLayer(string $layer): void;
|
||||
|
||||
public function getLayer(): string;
|
||||
}
|
23
application/symfony/src/Attribut/MemberRelationAttribut.php
Normal file
23
application/symfony/src/Attribut/MemberRelationAttribut.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
|
||||
trait MemberRelationAttribut
|
||||
{
|
||||
/**
|
||||
* @var MemberRelationInterface
|
||||
*/
|
||||
protected $memberRelation;
|
||||
|
||||
public function setMemberRelation(MemberRelationInterface $memberRelation): void
|
||||
{
|
||||
$this->memberRelation = $memberRelation;
|
||||
}
|
||||
|
||||
public function getMemberRelation(): MemberRelationInterface
|
||||
{
|
||||
return $this->memberRelation;
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
|
||||
interface MemberRelationAttributInterface
|
||||
{
|
||||
public function setMemberRelation(MemberRelationInterface $memberRelation): void;
|
||||
|
||||
public function getMemberRelation(): MemberRelationInterface;
|
||||
}
|
33
application/symfony/src/Attribut/MembersAttribut.php
Normal file
33
application/symfony/src/Attribut/MembersAttribut.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait MembersAttribut
|
||||
{
|
||||
/**
|
||||
* @var Collection|MemberRelationInterface[]
|
||||
*/
|
||||
protected $members;
|
||||
|
||||
/**
|
||||
* @return Collection|MemberRelationInterface[]
|
||||
*/
|
||||
public function getMembers(): Collection
|
||||
{
|
||||
return $this->members;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Collection|MemberRelationInterface[] $members
|
||||
*/
|
||||
public function setMembers(Collection $members): void
|
||||
{
|
||||
$this->members = $members;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface MembersAttributInterface
|
||||
{
|
||||
/**
|
||||
* @param Collection|MemberRelationInterface[] $members
|
||||
*/
|
||||
public function setMembers(Collection $members): void;
|
||||
|
||||
/**
|
||||
* @return Collection|MemberRelationInterface[]
|
||||
*/
|
||||
public function getMembers(): Collection;
|
||||
}
|
33
application/symfony/src/Attribut/MembershipsAttribut.php
Normal file
33
application/symfony/src/Attribut/MembershipsAttribut.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait MembershipsAttribut
|
||||
{
|
||||
/**
|
||||
* @var Collection|MemberRelationInterface[]
|
||||
*/
|
||||
protected $memberships;
|
||||
|
||||
/**
|
||||
* @return Collection|MemberRelationInterface[]
|
||||
*/
|
||||
public function getMemberships(): Collection
|
||||
{
|
||||
return $this->memberships;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Collection|MemberRelationInterface[] $memberships
|
||||
*/
|
||||
public function setMemberships(Collection $memberships): void
|
||||
{
|
||||
$this->memberships = $memberships;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface MembershipsAttributInterface
|
||||
{
|
||||
/**
|
||||
* @param Collection|MemberRelationInterface[] $groups
|
||||
*/
|
||||
public function setMemberships(Collection $memberships): void;
|
||||
|
||||
/**
|
||||
* @return Collection|MemberRelationInterface[]
|
||||
*/
|
||||
public function getMemberships(): Collection;
|
||||
}
|
24
application/symfony/src/Attribut/NameAttribut.php
Normal file
24
application/symfony/src/Attribut/NameAttribut.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait NameAttribut
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
public function setName(string $name): void
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
13
application/symfony/src/Attribut/NameAttributInterface.php
Normal file
13
application/symfony/src/Attribut/NameAttributInterface.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface NameAttributInterface
|
||||
{
|
||||
public function setName(string $name): void;
|
||||
|
||||
public function getName(): string;
|
||||
}
|
26
application/symfony/src/Attribut/NameSourceAttribut.php
Normal file
26
application/symfony/src/Attribut/NameSourceAttribut.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Primitive\Name\NameSourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait NameSourceAttribut
|
||||
{
|
||||
/**
|
||||
* @var NameSourceInterface
|
||||
*/
|
||||
protected $nameSource;
|
||||
|
||||
public function setNameSource(NameSourceInterface $nameSource): void
|
||||
{
|
||||
$this->nameSource = $nameSource;
|
||||
}
|
||||
|
||||
public function getNameSource(): NameSourceInterface
|
||||
{
|
||||
return $this->nameSource;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Primitive\Name\NameSourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface NameSourceAttributInterface
|
||||
{
|
||||
public function setNameSource(NameSourceInterface $nameSource): void;
|
||||
|
||||
public function getNameSource(): NameSourceInterface;
|
||||
}
|
23
application/symfony/src/Attribut/ParentRelationAttribut.php
Normal file
23
application/symfony/src/Attribut/ParentRelationAttribut.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\Parent\ParentRelationInterface;
|
||||
|
||||
trait ParentRelationAttribut
|
||||
{
|
||||
/**
|
||||
* @var ParentRelationInterface
|
||||
*/
|
||||
protected $parentRelation;
|
||||
|
||||
public function setParentRelation(ParentRelationInterface $parentRelation): void
|
||||
{
|
||||
$this->parentRelation = $parentRelation;
|
||||
}
|
||||
|
||||
public function getParentRelation(): ParentRelationInterface
|
||||
{
|
||||
return $this->parentRelation;
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\Parent\ParentRelationInterface;
|
||||
|
||||
interface ParentRelationAttributInterface
|
||||
{
|
||||
public function setParentRelation(ParentRelationInterface $parentRelation): void;
|
||||
|
||||
public function getParentRelation(): ParentRelationInterface;
|
||||
}
|
26
application/symfony/src/Attribut/ParentsAttribut.php
Normal file
26
application/symfony/src/Attribut/ParentsAttribut.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait ParentsAttribut
|
||||
{
|
||||
/**
|
||||
* @var Collection|ParentsAttributInterface[]
|
||||
*/
|
||||
protected $parents;
|
||||
|
||||
public function getParents(): Collection
|
||||
{
|
||||
return $this->parents;
|
||||
}
|
||||
|
||||
public function setParents(Collection $parents): void
|
||||
{
|
||||
$this->parents = $parents;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface ParentsAttributInterface
|
||||
{
|
||||
public function setParents(Collection $parents): void;
|
||||
|
||||
public function getParents(): Collection;
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Complex\PersonIdentitySourceInterface;
|
||||
|
||||
trait PersonIdentitySourceAttribut
|
||||
{
|
||||
/**
|
||||
* @var PersonIdentitySourceInterface
|
||||
*/
|
||||
protected $personIdentitySource;
|
||||
|
||||
public function getPersonIdentitySource(): PersonIdentitySourceInterface
|
||||
{
|
||||
return $this->personIdentitySource;
|
||||
}
|
||||
|
||||
public function setPersonIdentitySource(PersonIdentitySourceInterface $identity): void
|
||||
{
|
||||
$this->personIdentitySource = $identity;
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Complex\PersonIdentitySourceInterface;
|
||||
|
||||
interface PersonIdentitySourceAttributInterface
|
||||
{
|
||||
public function getPersonIdentitySource(): PersonIdentitySourceInterface;
|
||||
|
||||
public function setPersonIdentitySource(PersonIdentitySourceInterface $identity): void;
|
||||
}
|
21
application/symfony/src/Attribut/PriorityAttribut.php
Normal file
21
application/symfony/src/Attribut/PriorityAttribut.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
trait PriorityAttribut
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $priority;
|
||||
|
||||
public function setPriority(int $priority): void
|
||||
{
|
||||
$this->priority = $priority;
|
||||
}
|
||||
|
||||
public function getPriority(): int
|
||||
{
|
||||
return $this->priority;
|
||||
}
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
interface PriorityAttributInterface
|
||||
{
|
||||
public function setPriority(int $priority): void;
|
||||
|
||||
public function getPriority(): int;
|
||||
}
|
26
application/symfony/src/Attribut/RecieverAttribut.php
Normal file
26
application/symfony/src/Attribut/RecieverAttribut.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\SourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait RecieverAttribut
|
||||
{
|
||||
/**
|
||||
* @var SourceInterface
|
||||
*/
|
||||
protected $reciever;
|
||||
|
||||
public function setReciever(SourceInterface $reciever): void
|
||||
{
|
||||
$this->reciever = $reciever;
|
||||
}
|
||||
|
||||
public function getReciever(): SourceInterface
|
||||
{
|
||||
return $this->reciever;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\SourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface RecieverAttributInterface
|
||||
{
|
||||
public function setReciever(SourceInterface $reciever): void;
|
||||
|
||||
public function getReciever(): SourceInterface;
|
||||
}
|
26
application/symfony/src/Attribut/RelationAttribut.php
Normal file
26
application/symfony/src/Attribut/RelationAttribut.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\RelationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait RelationAttribut
|
||||
{
|
||||
/**
|
||||
* @var RelationInterface
|
||||
*/
|
||||
protected $relation;
|
||||
|
||||
public function setRelation(RelationInterface $relation): void
|
||||
{
|
||||
$this->relation = $relation;
|
||||
}
|
||||
|
||||
public function getRelation(): RelationInterface
|
||||
{
|
||||
return $this->relation;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\Relation\RelationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface RelationAttributInterface
|
||||
{
|
||||
public function setRelation(RelationInterface $relation): void;
|
||||
|
||||
public function getRelation(): RelationInterface;
|
||||
}
|
26
application/symfony/src/Attribut/RightAttribut.php
Normal file
26
application/symfony/src/Attribut/RightAttribut.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\RightInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait RightAttribut
|
||||
{
|
||||
/**
|
||||
* @var RightInterface
|
||||
*/
|
||||
protected $right;
|
||||
|
||||
public function setRight(RightInterface $right): void
|
||||
{
|
||||
$this->right = $right;
|
||||
}
|
||||
|
||||
public function getRight(): RightInterface
|
||||
{
|
||||
return $this->right;
|
||||
}
|
||||
}
|
15
application/symfony/src/Attribut/RightAttributInterface.php
Normal file
15
application/symfony/src/Attribut/RightAttributInterface.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Meta\RightInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface RightAttributInterface
|
||||
{
|
||||
public function setRight(RightInterface $right): void;
|
||||
|
||||
public function getRight(): RightInterface;
|
||||
}
|
22
application/symfony/src/Attribut/RightsAttributInterface.php
Normal file
22
application/symfony/src/Attribut/RightsAttributInterface.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use App\Entity\Meta\RightInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface RightsAttributInterface
|
||||
{
|
||||
/**
|
||||
* @param Collection|RightInterface[] $rights
|
||||
*/
|
||||
public function setRights(Collection $rights): void;
|
||||
|
||||
/**
|
||||
* @return Collection|RightInterface[]
|
||||
*/
|
||||
public function getRights(): Collection;
|
||||
}
|
26
application/symfony/src/Attribut/RightsAttribute.php
Normal file
26
application/symfony/src/Attribut/RightsAttribute.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait RightsAttribute
|
||||
{
|
||||
/**
|
||||
* @var Collection
|
||||
*/
|
||||
protected $rights;
|
||||
|
||||
public function setRights(Collection $rights): void
|
||||
{
|
||||
$this->rights = $rights;
|
||||
}
|
||||
|
||||
public function getRights(): Collection
|
||||
{
|
||||
return $this->rights;
|
||||
}
|
||||
}
|
29
application/symfony/src/Attribut/SlugAttribut.php
Normal file
29
application/symfony/src/Attribut/SlugAttribut.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait SlugAttribut
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $slug;
|
||||
|
||||
public function setSlug(string $slug): void
|
||||
{
|
||||
$this->slug = $slug;
|
||||
}
|
||||
|
||||
public function getSlug(): string
|
||||
{
|
||||
return $this->slug;
|
||||
}
|
||||
|
||||
public function hasSlug(): bool
|
||||
{
|
||||
return isset($this->slug);
|
||||
}
|
||||
}
|
24
application/symfony/src/Attribut/SlugAttributInterface.php
Normal file
24
application/symfony/src/Attribut/SlugAttributInterface.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface SlugAttributInterface
|
||||
{
|
||||
/**
|
||||
* @param string $slug
|
||||
*/
|
||||
public function setSlug(string $slug): void;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSlug(): string;
|
||||
|
||||
/**
|
||||
* @return bool Checks if a slug is set
|
||||
*/
|
||||
public function hasSlug(): bool;
|
||||
}
|
26
application/symfony/src/Attribut/SourceAttribut.php
Normal file
26
application/symfony/src/Attribut/SourceAttribut.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\SourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait SourceAttribut
|
||||
{
|
||||
/**
|
||||
* @var SourceInterface
|
||||
*/
|
||||
protected $source;
|
||||
|
||||
public function getSource(): SourceInterface
|
||||
{
|
||||
return $this->source;
|
||||
}
|
||||
|
||||
public function setSource(SourceInterface $source): void
|
||||
{
|
||||
$this->source = $source;
|
||||
}
|
||||
}
|
15
application/symfony/src/Attribut/SourceAttributInterface.php
Normal file
15
application/symfony/src/Attribut/SourceAttributInterface.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\SourceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface SourceAttributInterface
|
||||
{
|
||||
public function getSource(): SourceInterface;
|
||||
|
||||
public function setSource(SourceInterface $source): void;
|
||||
}
|
23
application/symfony/src/Attribut/SurnameSourceAttribut.php
Normal file
23
application/symfony/src/Attribut/SurnameSourceAttribut.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Primitive\Name\SurnameSourceInterface;
|
||||
|
||||
trait SurnameSourceAttribut
|
||||
{
|
||||
/**
|
||||
* @var SurnameSourceInterface
|
||||
*/
|
||||
protected $surnameSource;
|
||||
|
||||
public function getSurnameSource(): SurnameSourceInterface
|
||||
{
|
||||
return $this->surnameSource;
|
||||
}
|
||||
|
||||
public function setSurnameSource(SurnameSourceInterface $name): void
|
||||
{
|
||||
$this->surnameSource = $name;
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\Source\Primitive\Name\SurnameSourceInterface;
|
||||
|
||||
interface SurnameSourceAttributInterface
|
||||
{
|
||||
public function getSurnameSource(): SurnameSourceInterface;
|
||||
|
||||
public function setSurnameSource(SurnameSourceInterface $name): void;
|
||||
}
|
21
application/symfony/src/Attribut/TextAttribut.php
Normal file
21
application/symfony/src/Attribut/TextAttribut.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
trait TextAttribut
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $text;
|
||||
|
||||
public function getText(): string
|
||||
{
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
public function setText(string $text): void
|
||||
{
|
||||
$this->text = $text;
|
||||
}
|
||||
}
|
10
application/symfony/src/Attribut/TextAttributInterface.php
Normal file
10
application/symfony/src/Attribut/TextAttributInterface.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
interface TextAttributInterface
|
||||
{
|
||||
public function getText(): string;
|
||||
|
||||
public function setText(string $text): void;
|
||||
}
|
27
application/symfony/src/Attribut/UserAttribut.php
Normal file
27
application/symfony/src/Attribut/UserAttribut.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\User;
|
||||
use App\Entity\UserInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait UserAttribut
|
||||
{
|
||||
/**
|
||||
* @var User
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
public function setUser(UserInterface $user): void
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
public function getUser(): UserInterface
|
||||
{
|
||||
return $this->user;
|
||||
}
|
||||
}
|
15
application/symfony/src/Attribut/UserAttributInterface.php
Normal file
15
application/symfony/src/Attribut/UserAttributInterface.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Entity\UserInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface UserAttributInterface
|
||||
{
|
||||
public function setUser(UserInterface $user): void;
|
||||
|
||||
public function getUser(): UserInterface;
|
||||
}
|
24
application/symfony/src/Attribut/VersionAttribut.php
Normal file
24
application/symfony/src/Attribut/VersionAttribut.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait VersionAttribut
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $version;
|
||||
|
||||
public function setVersion(int $version): void
|
||||
{
|
||||
$this->version = $version;
|
||||
}
|
||||
|
||||
public function getVersion(): int
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
/**
|
||||
* Entities which implement this interface can lock stuff on an optimistic base.
|
||||
*
|
||||
* @see https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/transactions-and-concurrency.html
|
||||
* @see https://en.wikipedia.org/wiki/Optimistic_concurrency_control
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface VersionAttributInterface
|
||||
{
|
||||
/**
|
||||
* Returns the revision version of the entity.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getVersion(): int;
|
||||
|
||||
/**
|
||||
* Sets the revision version of the entity.
|
||||
*
|
||||
* @param int $version
|
||||
*/
|
||||
public function setVersion(int $version): void;
|
||||
}
|
Reference in New Issue
Block a user