src/Contract/Fetcher/Parent/AbstractFetcher.php
protected function filterContractAnnotation(array $annotations): array
    {
        $contractAnnotations = [];

        foreach ($annotations as $annotation) {
            $annotationClass = \get_class($annotation);

            if (\in_array($annotationClass, $this->expectedAnnotationTypes, true)) {
                $contractAnnotations[] = $annotation;
            }
        }

        return $contractAnnotations;
    }
protected function filterContractAnnotation(array $annotations): array
    {
        $contractAnnotations = [];

        foreach ($annotations as $annotation) {
            $annotationClass = \get_class($annotation);

            if (\in_array($annotationClass, $this->expectedAnnotationTypes, true)) {
                $contractAnnotations[] = $annotation;
            }
        }

        return $contractAnnotations;
    }
protected function filterContractAnnotation ( array $ annotations ) : array { $ contractAnnotations = [ ] ; foreach ( $ annotations as $ annotation ) { $ annotationClass = \ get_class ( $ annotation ) ; if ( \ in_array ( $ annotationClass , $ this -> expectedAnnotationTypes , true ) ) { $ contractAnnotations [ ] = $ annotation ; } } return $ contractAnnotations ; }
Performs filtering of annotations by the requested class name

@param array $annotations
@return array
Performs filtering of annotations by the requested class name