public function newAnnotatedDependency(\ReflectionClass $class) : Dependency
    {
        $annotateClass = new AnnotatedClass(new AnnotationReader);
        $newInstance = $annotateClass->getNewInstance($class);
        $postConstruct = $annotateClass->getPostConstruct($class);

        return new Dependency($newInstance, $postConstruct);
    }
public function newAnnotatedDependency(\ReflectionClass $class) : Dependency
    {
        $annotateClass = new AnnotatedClass(new AnnotationReader);
        $newInstance = $annotateClass->getNewInstance($class);
        $postConstruct = $annotateClass->getPostConstruct($class);

        return new Dependency($newInstance, $postConstruct);
    }
public function newAnnotatedDependency ( \ ReflectionClass $ class ) : Dependency { $ annotateClass = new AnnotatedClass ( new AnnotationReader ) ; $ newInstance = $ annotateClass -> getNewInstance ( $ class ) ; $ postConstruct = $ annotateClass -> getPostConstruct ( $ class ) ; return new Dependency ( $ newInstance , $ postConstruct ) ; }
Create dependency object
Create dependency object