mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Optimized implementation of format types
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Entity\NodeInterface;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -19,16 +19,16 @@ trait ChildsAttribut
|
||||
* inverseJoinColumns={@ORM\JoinColumn(name="node_id", referencedColumnName="id")}
|
||||
* )
|
||||
*
|
||||
* @var ArrayCollection|NodeInterface[]
|
||||
* @var Collection|NodeInterface[]
|
||||
*/
|
||||
protected $childs;
|
||||
|
||||
public function getChilds(): ArrayCollection
|
||||
public function getChilds(): Collection
|
||||
{
|
||||
return $this->getChilds();
|
||||
return $this->childs;
|
||||
}
|
||||
|
||||
public function setChilds(ArrayCollection $childs): void
|
||||
public function setChilds(Collection $childs): void
|
||||
{
|
||||
$this->childs = $childs;
|
||||
}
|
||||
|
@@ -2,14 +2,14 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface ChildsAttributeInterface
|
||||
{
|
||||
public function setChilds(ArrayCollection $childs): void;
|
||||
public function setChilds(Collection $childs): void;
|
||||
|
||||
public function getChilds(): ArrayCollection;
|
||||
public function getChilds(): Collection;
|
||||
}
|
||||
|
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Entity\NodeInterface;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -19,16 +19,16 @@ trait ParentsAttribut
|
||||
* inverseJoinColumns={@ORM\JoinColumn(name="node_id", referencedColumnName="id")}
|
||||
* )
|
||||
*
|
||||
* @var ArrayCollection|NodeInterface[]
|
||||
* @var Collection|NodeInterface[]
|
||||
*/
|
||||
protected $parents;
|
||||
|
||||
public function getParents(): ArrayCollection
|
||||
public function getParents(): Collection
|
||||
{
|
||||
return $this->parents;
|
||||
}
|
||||
|
||||
public function setParents(ArrayCollection $parents): void
|
||||
public function setParents(Collection $parents): void
|
||||
{
|
||||
$this->parents = $parents;
|
||||
}
|
||||
|
@@ -2,14 +2,14 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface ParentsAttributInterface
|
||||
{
|
||||
public function setParents(ArrayCollection $parents): void;
|
||||
public function setParents(Collection $parents): void;
|
||||
|
||||
public function getParents(): ArrayCollection;
|
||||
public function getParents(): Collection;
|
||||
}
|
||||
|
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Entity\PermissionInterface;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -11,16 +11,16 @@ use App\Entity\PermissionInterface;
|
||||
trait PermissionsAttribut
|
||||
{
|
||||
/**
|
||||
* @var ArrayCollection
|
||||
* @var Collection
|
||||
*/
|
||||
protected $permissions;
|
||||
|
||||
public function setPermissions(ArrayCollection $permissions): void
|
||||
public function setPermissions(Collection $permissions): void
|
||||
{
|
||||
$this->permissions = $permissions;
|
||||
}
|
||||
|
||||
public function getPermissions(): ArrayCollection
|
||||
public function getPermissions(): Collection
|
||||
{
|
||||
return $this->permissions;
|
||||
}
|
||||
|
@@ -2,17 +2,17 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Entity\PermissionInterface;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface PermissionsAttributInterface
|
||||
{
|
||||
public function setPermissions(ArrayCollection $permissions): void;
|
||||
public function setPermissions(Collection $permissions): void;
|
||||
|
||||
public function getPermissions(): ArrayCollection;
|
||||
public function getPermissions(): Collection;
|
||||
|
||||
public function addPermission(PermissionInterface $permission): void;
|
||||
}
|
||||
|
@@ -21,6 +21,6 @@ trait RightAttribut
|
||||
|
||||
public function getRight(): RightInterface
|
||||
{
|
||||
return $this->getRight();
|
||||
return $this->right;
|
||||
}
|
||||
}
|
||||
|
@@ -2,14 +2,14 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface RightsAttributInterface
|
||||
{
|
||||
public function setRights(ArrayCollection $rights): void;
|
||||
public function setRights(Collection $rights): void;
|
||||
|
||||
public function getRights(): ArrayCollection;
|
||||
public function getRights(): Collection;
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -10,16 +10,16 @@ use Doctrine\Common\Collections\ArrayCollection;
|
||||
trait RightsAttribute
|
||||
{
|
||||
/**
|
||||
* @var ArrayCollection
|
||||
* @var Collection
|
||||
*/
|
||||
protected $rights;
|
||||
|
||||
public function setRights(ArrayCollection $rights): void
|
||||
public function setRights(Collection $rights): void
|
||||
{
|
||||
$this->rights = $rights;
|
||||
}
|
||||
|
||||
public function getRights(): ArrayCollection
|
||||
public function getRights(): Collection
|
||||
{
|
||||
return $this->rights;
|
||||
}
|
||||
|
Reference in New Issue
Block a user