PhpDeal\Aspect\PreconditionCheckerAspect::fetchAllContracts PHP 메소드

fetchAllContracts() 개인적인 메소드

private fetchAllContracts ( Go\Aop\Intercept\MethodInvocation $invocation ) : array
$invocation Go\Aop\Intercept\MethodInvocation
리턴 array
    private function fetchAllContracts(MethodInvocation $invocation)
    {
        $allContracts = $this->fetchParentsContracts($invocation);
        foreach ($invocation->getMethod()->getAnnotations() as $annotation) {
            if ($annotation instanceof Verify) {
                $allContracts[] = $annotation;
            }
        }
        return array_unique($allContracts);
    }