src/Anonym/Cron/BasicCron.php
private function resolveEventResponse($response)
    {
        if (is_string($response)) {
            $response = new ExecTask($response);
        }

        if ($response instanceof TaskReposity && !$response instanceof ClosureTask) {
            EventReposity::addBasic($response);
        } else {
            throw new CronInstanceException(
                sprintf(
                    'Event Response must be an instance of %s and cant be an instance of %s',
                    TaskReposity::class,
                    ClosureTask::class
                )
            );
        }
    }
private function resolveEventResponse($response)
    {
        if (is_string($response)) {
            $response = new ExecTask($response);
        }

        if ($response instanceof TaskReposity && !$response instanceof ClosureTask) {
            EventReposity::addBasic($response);
        } else {
            throw new CronInstanceException(
                sprintf(
                    'Event Response must be an instance of %s and cant be an instance of %s',
                    TaskReposity::class,
                    ClosureTask::class
                )
            );
        }
    }
private function resolveEventResponse ( $ response ) { if ( is_string ( $ response ) ) { $ response = new ExecTask ( $ response ) ; } if ( $ response instanceof TaskReposity && ! $ response instanceof ClosureTask ) { EventReposity :: addBasic ( $ response ) ; } else { throw new CronInstanceException ( sprintf ( 'Event Response must be an instance of %s and cant be an instance of %s' , TaskReposity :: class , ClosureTask :: class ) ) ; } }
resolve the response from add event method

@param mixed $response
@throws CronInstanceException
resolve the response from add event method