original_string: protected function getObjectByClass(/*# string */ $classname)
      {
          if ($this->getResolver()->hasService($classname)) {
              $serviceId = ObjectResolver::getServiceId($classname);
              return $this->getResolver()->get($serviceId);
          }
          throw new LogicException(
              Message::get(Message::DI_CLASS_UNKNOWN, $classname),
              Message::DI_CLASS_UNKNOWN
          );
      }
code: protected function getObjectByClass(/*# string */ $classname)
      {
          if ($this->getResolver()->hasService($classname)) {
              $serviceId = ObjectResolver::getServiceId($classname);
              return $this->getResolver()->get($serviceId);
          }
          throw new LogicException(
              Message::get(Message::DI_CLASS_UNKNOWN, $classname),
              Message::DI_CLASS_UNKNOWN
          );
      }
code_tokens: protected function getObjectByClass ( /*# string */ $ classname ) { if ( $ this -> getResolver ( ) -> hasService ( $ classname ) ) { $ serviceId = ObjectResolver :: getServiceId ( $ classname ) ; return $ this -> getResolver ( ) -> get ( $ serviceId ) ; } throw new LogicException ( Message :: get ( Message :: DI_CLASS_UNKNOWN , $ classname ) , Message :: DI_CLASS_UNKNOWN ) ; }
docstring: Get an object base on provided classname or interface name
  
  @param  string $classname class or interface name
  @return object
  @throws \Exception if something goes wrong
  @access protected
docstring_tokens: Get an object base on provided classname or interface name