src/Anonym/Cron/BasicCron.php
public function event(Closure $event)
    {
        if (null !== $response = $event()) {
            $this->resolveEventResponse($response);
        }

        return $this;
    }
public function event(Closure $event)
    {
        if (null !== $response = $event()) {
            $this->resolveEventResponse($response);
        }

        return $this;
    }
public function event ( Closure $ event ) { if ( null !== $ response = $ event ( ) ) { $ this -> resolveEventResponse ( $ response ) ; } return $ this ; }
add a event

@param Closure $event
@return $this
add a event