private function isValidMethod(MethodReflector $method) { if ($method->getName() === 'bootstrap') { return false; } if ($method->isMagic()) { return false; } if (!$method->isPublic()) { return false; } return true; }
private function applyTypes(ContainerInterface $container, MethodReflector $method) { if ($method->getDocBlock()->hasTag(self::DOC_TAG_RETURN)) { $container->setTypes($method->getName(), $method->getDocBlock()->getTag(self::DOC_TAG_RETURN)->getTypes()); } }