public function grep($pattern)
    {
        $results = array_intersect_key($this->attributes, array_flip(
            RegexGuard::getGuard()->grep($pattern, array_keys($this->attributes))
        ));

        return new static($results);
    }
public function grep($pattern)
    {
        $results = array_intersect_key($this->attributes, array_flip(
            RegexGuard::getGuard()->grep($pattern, array_keys($this->attributes))
        ));

        return new static($results);
    }
public function grep ( $ pattern ) { $ results = array_intersect_key ( $ this -> attributes , array_flip ( RegexGuard :: getGuard ( ) -> grep ( $ pattern , array_keys ( $ this -> attributes ) ) ) ) ; return new static ( $ results ) ; }
Filters annotations based on a regexp

@param  string                             $pattern valid regexp
@return \Minime\Annotations\AnnotationsBag Annotations collection with filtered results
Filters annotations based on a regexp