public function create($type = null, $parameters = null, BaseScheduleInterface $schedule = null)
    {
        $class = $this->getClass();

        /** @var JobInterface $job */
        $job   = new $class;

        $job->setType($type);
        $job->setParameters($parameters);

        if(!is_null($schedule))
        {
            $job->addSchedule($schedule);
        }

        return $job;
    }
public function create($type = null, $parameters = null, BaseScheduleInterface $schedule = null)
    {
        $class = $this->getClass();

        /** @var JobInterface $job */
        $job   = new $class;

        $job->setType($type);
        $job->setParameters($parameters);

        if(!is_null($schedule))
        {
            $job->addSchedule($schedule);
        }

        return $job;
    }
{@inheritDoc}