public function getJob($name)
    {
        foreach ($this->getJobs() as $job) {
            if ($job->getName() === $name) {
                return $job;
            }
        }
    }
public function getJob($name)
    {
        foreach ($this->getJobs() as $job) {
            if ($job->getName() === $name) {
                return $job;
            }
        }
    }
public function getJob ( $ name ) { foreach ( $ this -> getJobs ( ) as $ job ) { if ( $ job -> getName ( ) === $ name ) { return $ job ; } } }
Returns the job with the passed name.

@param string $name The name of the job to be returned

@return mixed The requested job
Returns the job with the passed name .