getConditions() public method

Fetches conditions from all parent method prototypes recursively
public getConditions ( ReflectionClass $class, string $methodName ) : array
$class ReflectionClass
$methodName string
return array
 /**
  * @param MethodInvocation $invocation
  * @return array
  */
 private function fetchParentsContracts(MethodInvocation $invocation)
 {
     return $this->methodConditionFetcher->getConditions($invocation->getMethod()->getDeclaringClass(), $invocation->getMethod()->name);
 }