for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Application\Traits;
use Doctrine\ORM\Mapping as ORM;
/**
* Access to all doors
*/
trait HasDoorAccess
{
* @var bool
* @ORM\Column(type="boolean", options={"default" = 1})
private $door1 = true;
private $door2 = true;
private $door3 = true;
* @ORM\Column(type="boolean", options={"default" = 0})
private $door4 = false;
* @return bool
public function isDoor1(): bool
return $this->door1;
}
* @param bool $door1
public function setDoor1(bool $door1): void
$this->door1 = $door1;
public function isDoor2(): bool
return $this->door2;
* @param bool $door2
public function setDoor2(bool $door2): void
$this->door2 = $door2;
public function isDoor3(): bool
return $this->door3;
* @param bool $door3
public function setDoor3(bool $door3): void
$this->door3 = $door3;
public function isDoor4(): bool
return $this->door4;
* @param bool $door4
public function setDoor4(bool $door4): void
$this->door4 = $door4;