/** * @param MethodInvocation $invocation * @return array */ private function fetchParentsContracts(MethodInvocation $invocation) { return $this->methodConditionFetcher->getConditions($invocation->getMethod()->getDeclaringClass(), $invocation->getMethod()->name); }