private fetchAllContracts ( Go\Aop\Intercept\MethodInvocation $invocation ) : array | ||
$invocation | Go\Aop\Intercept\MethodInvocation | |
return | 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);
}