PhpDeal\Contract\Fetcher\ParentClass\AbstractFetcher::filterContractAnnotation PHP Method

filterContractAnnotation() protected method

Performs filtering of annotations by the requested class name
protected filterContractAnnotation ( array $annotations ) : array
$annotations array
return array
    protected function filterContractAnnotation(array $annotations)
    {
        $contractAnnotations = [];
        foreach ($annotations as $annotation) {
            if ($annotation instanceof $this->expectedAnnotationType) {
                $contractAnnotations[] = $annotation;
            }
        }
        return $contractAnnotations;
    }