Phue\Command\CreateSchedule::__construct PHP Method

__construct() public method

Constructs a create schedule command
public __construct ( string $name = null, mixed $time = null, Phue\Command\ActionableInterface $command = null )
$name string Name of schedule
$time mixed Time to run command
$command Phue\Command\ActionableInterface Actionable command
    public function __construct($name = null, $time = null, ActionableInterface $command = null)
    {
        // Set name, time, command if passed
        $name !== null && $this->name($name);
        $time !== null && $this->time($time);
        $command !== null && $this->command($command);
        // Copy description
        $this->description = $name;
    }