public function to(string $class) : self
    {
        $this->untarget = null;
        $this->validate->to($this->interface, $class);
        $this->bound = (new DependencyFactory)->newAnnotatedDependency(new \ReflectionClass($class));
        $this->container->add($this);

        return $this;
    }
public function to(string $class) : self
    {
        $this->untarget = null;
        $this->validate->to($this->interface, $class);
        $this->bound = (new DependencyFactory)->newAnnotatedDependency(new \ReflectionClass($class));
        $this->container->add($this);

        return $this;
    }
public function to ( string $ class ) : self { $ this -> untarget = null ; $ this -> validate -> to ( $ this -> interface , $ class ) ; $ this -> bound = ( new DependencyFactory ) -> newAnnotatedDependency ( new \ ReflectionClass ( $ class ) ) ; $ this -> container -> add ( $ this ) ; return $ this ; }
Bind to class
Bind to class