mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
In between commit refactoring and implementing tests
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait BlacklistAttribut
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $blacklist;
|
||||
|
||||
public function setBlacklist(?bool $value): void
|
||||
{
|
||||
$this->blacklist = $value;
|
||||
}
|
||||
|
||||
public function getBlacklist(): ?bool
|
||||
{
|
||||
return $this->blacklist;
|
||||
}
|
||||
}
|
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface BlacklistAttributInterface
|
||||
{
|
||||
public function setBlacklist(?bool $value): void;
|
||||
|
||||
public function getBlacklist(): ?bool;
|
||||
}
|
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\NodeInterface;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
@@ -11,7 +10,7 @@ use Doctrine\Common\Collections\Collection;
|
||||
trait ChildsAttribut
|
||||
{
|
||||
/**
|
||||
* @var Collection|NodeInterface[]
|
||||
* @var Collection|ChildsAttributeInterface[]
|
||||
*/
|
||||
protected $childs;
|
||||
|
||||
|
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Entity\NodeInterface;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
@@ -11,7 +10,7 @@ use Doctrine\Common\Collections\Collection;
|
||||
trait ParentsAttribut
|
||||
{
|
||||
/**
|
||||
* @var Collection|NodeInterface[]
|
||||
* @var Collection|ParentsAttributInterface[]
|
||||
*/
|
||||
protected $parents;
|
||||
|
||||
|
@@ -1,29 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait PlainPasswordAttribute
|
||||
{
|
||||
/**
|
||||
* @Assert\NotBlank()
|
||||
* @Assert\Length(max=4096)
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $plainPassword;
|
||||
|
||||
public function getPlainPassword(): ?string
|
||||
{
|
||||
return $this->plainPassword;
|
||||
}
|
||||
|
||||
public function setPlainPassword(string $password): void
|
||||
{
|
||||
$this->plainPassword = $password;
|
||||
}
|
||||
}
|
@@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait WhitelistAttribut
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $whitelist;
|
||||
|
||||
public function setWhitelist(?bool $value): void
|
||||
{
|
||||
$this->whitelist = $value;
|
||||
}
|
||||
|
||||
public function getWhitelist(): ?bool
|
||||
{
|
||||
return $this->whitelist;
|
||||
}
|
||||
}
|
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface WhitelistAttributInterface
|
||||
{
|
||||
public function setWhitelist(?bool $value): void;
|
||||
|
||||
public function getWhitelist(): ?bool;
|
||||
}
|
Reference in New Issue
Block a user