for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace AlecRabbit\Traits;
trait Startable
{
/** @var bool */
protected $started = false;
/**
* @return bool
*/
public function isStarted(): bool
return $this->started;
}
public function isNotStarted(): bool
return !$this->started;
public function start(): void
$this->started = true;