for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
namespace Fousky\Traits\Active;
use Doctrine\ORM\Mapping as ORM;
/**
* @author Lukáš Brzák <[email protected]>
*/
trait ActivableTrait
{
* @var bool
*
* @ORM\Column(name="is_active", type="boolean", nullable=false, options={"default":"1"})
protected $active = true;
public function isActive(): bool
return $this->active;
}
public function setActive(bool $active): self
$this->active = $active;
return $this;