public function forLevel($option)
    {
        // Only return issues matching the level.
        $filter = function ($issue) use ($option) {
            if ($issue->matches($option)) {
                return true;
            }

            return false;
        };

        return $this->select($filter);
    }
public function forLevel($option)
    {
        // Only return issues matching the level.
        $filter = function ($issue) use ($option) {
            if ($issue->matches($option)) {
                return true;
            }

            return false;
        };

        return $this->select($filter);
    }
public function forLevel ( $ option ) { // Only return issues matching the level. $ filter = function ( $ issue ) use ( $ option ) { if ( $ issue -> matches ( $ option ) ) { return true ; } return false ; } ; return $ this -> select ( $ filter ) ; }
Returns a new IssueCollection filtered by the given level option.

@param  int             $level
@return IssueCollection
Returns a new IssueCollection filtered by the given level option .