public function getByName($name)
    {
        if (array_key_exists($name, $this->tasks)) {
            return $this->tasks[$name];
        }

        return false;
    }
public function getByName($name)
    {
        if (array_key_exists($name, $this->tasks)) {
            return $this->tasks[$name];
        }

        return false;
    }
public function getByName ( $ name ) { if ( array_key_exists ( $ name , $ this -> tasks ) ) { return $ this -> tasks [ $ name ] ; } return false ; }
get task by name
@param $name
@return bool
get task by name