for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TonicHealthCheck\Incident\Siren\Subject;
use Cron\CronExpression;
/**
* Class Subject.
*/
class Subject implements SubjectInterface
{
* @var string;
private $target;
* @var CronExpression ;
private $schedule;
* Subject constructor.
*
* @param string $target
* @param null|CronExpression $schedule
public function __construct($target, CronExpression $schedule = null)
$this->setTarget($target);
$this->setSchedule($schedule);
}
* @return string
public function getTarget()
return $this->target;
* @return CronExpression
public function getSchedule()
return $this->schedule;
public function __toString()
return $this->getTarget();
protected function setTarget($target)
$this->target = $target;
protected function setSchedule(CronExpression $schedule = null)
$this->schedule = $schedule;