src/Schedule.php
public function run($command, array $parameters = [])
    {
        if (\is_string($command) && \count($parameters)) {
            $command .= ' ' . $this->compileParameters($parameters);
        }

        $this->events[] = $event = new Event($this->id(), $command);

        return $event;
    }
public function run($command, array $parameters = [])
    {
        if (\is_string($command) && \count($parameters)) {
            $command .= ' ' . $this->compileParameters($parameters);
        }

        $this->events[] = $event = new Event($this->id(), $command);

        return $event;
    }
public function run ( $ command , array $ parameters = [ ] ) { if ( \ is_string ( $ command ) && \ count ( $ parameters ) ) { $ command .= ' ' . $ this -> compileParameters ( $ parameters ) ; } $ this -> events [ ] = $ event = new Event ( $ this -> id ( ) , $ command ) ; return $ event ; }
Add a new event to the schedule object.

@param string|\Closure $command
@param array           $parameters

@return \Crunz\Event
Add a new event to the schedule object .