original_string: public function get($class)
      {
          $class = ltrim($class, '\\');
  
          if (!isset($this->sharedInstances[$class])) {
              $this->sharedInstances[$class] = $this->create($class);
          }
          return $this->sharedInstances[$class];
      }
code: public function get($class)
      {
          $class = ltrim($class, '\\');
  
          if (!isset($this->sharedInstances[$class])) {
              $this->sharedInstances[$class] = $this->create($class);
          }
          return $this->sharedInstances[$class];
      }
code_tokens: public function get ( $ class ) { $ class = ltrim ( $ class , '\\' ) ; if ( ! isset ( $ this -> sharedInstances [ $ class ] ) ) { $ this -> sharedInstances [ $ class ] = $ this -> create ( $ class ) ; } return $ this -> sharedInstances [ $ class ] ; }
docstring: Get object from shared instances by class name.
  
  @param string $class
  @return mixed
docstring_tokens: Get object from shared instances by class name .