original_string: public function setDependencyResolver(DependencyResolver $dependencyResolver)
      {
          if ($this->dependencyResolver != null) {
              throw new \LogicException('There is an instance of DependencyManager class in class ContentManager.');
          }
  
          $this->dependencyResolver = $dependencyResolver;
      }
code: public function setDependencyResolver(DependencyResolver $dependencyResolver)
      {
          if ($this->dependencyResolver != null) {
              throw new \LogicException('There is an instance of DependencyManager class in class ContentManager.');
          }
  
          $this->dependencyResolver = $dependencyResolver;
      }
code_tokens: public function setDependencyResolver ( DependencyResolver $ dependencyResolver ) { if ( $ this -> dependencyResolver != null ) { throw new \ LogicException ( 'There is an instance of DependencyManager class in class ContentManager.' ) ; } $ this -> dependencyResolver = $ dependencyResolver ; }
docstring: Sets the dependency resolver.
  
  @param DependencyResolver $dependencyResolver
  
  @throws LogicException If there is a previous instance the dependency resolver.
docstring_tokens: Sets the dependency resolver .