public function getParameterByID($id)
    {
        $param = current(array_filter($this->params, function (Param $param) use ($id) {
            return ($param->id === $id);
        }));

        return ($param) ? $param : null;
    }
public function getParameterByID($id)
    {
        $param = current(array_filter($this->params, function (Param $param) use ($id) {
            return ($param->id === $id);
        }));

        return ($param) ? $param : null;
    }
public function getParameterByID ( $ id ) { $ param = current ( array_filter ( $ this -> params , function ( Param $ param ) use ( $ id ) { return ( $ param -> id === $ id ) ; } ) ) ; return ( $ param ) ? $ param : null ; }
Return a Param by ID
@param $id
@return Param
Return a Param by ID