src/Parser/ParsedClass.php
public function getMethods(array $annotations = []): array
    {
        $methods = array_filter($this->methods, function (ParsedFunction $method) use ($annotations): bool {
            foreach ($annotations as $a => $v) {
                foreach (explode(',', $v) as $subValue) {
                    if ($method->hasAnnotation($a, $subValue)) {
                        return true;
                    }
                }
            }

            return false;
        });

        return $methods ?: $this->methods;
    }
public function getMethods(array $annotations = []): array
    {
        $methods = array_filter($this->methods, function (ParsedFunction $method) use ($annotations): bool {
            foreach ($annotations as $a => $v) {
                foreach (explode(',', $v) as $subValue) {
                    if ($method->hasAnnotation($a, $subValue)) {
                        return true;
                    }
                }
            }

            return false;
        });

        return $methods ?: $this->methods;
    }
public function getMethods ( array $ annotations = [ ] ) : array { $ methods = array_filter ( $ this -> methods , function ( ParsedFunction $ method ) use ( $ annotations ) : bool { foreach ( $ annotations as $ a => $ v ) { foreach ( explode ( ',' , $ v ) as $ subValue ) { if ( $ method -> hasAnnotation ( $ a , $ subValue ) ) { return true ; } } } return false ; } ) ; return $ methods ? : $ this -> methods ; }
Return the methods of this parsed class
optionally filtering on annotations present
on a method.

@param array $annotations

@return array
Return the methods of this parsed class optionally filtering on annotations present on a method .