In between commit refactoring and implementing tests

This commit is contained in:
Kevin Frantz
2018-10-28 20:28:29 +01:00
parent 89396dfef3
commit de51649d63
21 changed files with 105 additions and 148 deletions

View File

@@ -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;
}
}

View File

@@ -1,13 +0,0 @@
<?php
namespace App\Entity\Attribut;
/**
* @author kevinfrantz
*/
interface BlacklistAttributInterface
{
public function setBlacklist(?bool $value): void;
public function getBlacklist(): ?bool;
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -1,13 +0,0 @@
<?php
namespace App\Entity\Attribut;
/**
* @author kevinfrantz
*/
interface WhitelistAttributInterface
{
public function setWhitelist(?bool $value): void;
public function getWhitelist(): ?bool;
}