original_string: public function getCompiler()
      {
          if (!$this->compiler instanceof AbstractCompiler) {
              if (null === $this->compiler) {
                  throw new \Exception('Compiler not set');
              }
              $compiler = $this->getView()->getHelperPluginManager()->getServiceLocator()->get($this->compiler);
              if (!$compiler instanceof AbstractCompiler) {
                  throw new \Exception(sprintf(
                      'Invalid compiler type: %s not instance of Spork\CSS\AbstractCompiler',
                      is_object($compiler) ? get_class($compiler) : gettype($compiler)));
              }
              $this->compiler = $compiler;
          }
          
          return $this->compiler;
      }
code: public function getCompiler()
      {
          if (!$this->compiler instanceof AbstractCompiler) {
              if (null === $this->compiler) {
                  throw new \Exception('Compiler not set');
              }
              $compiler = $this->getView()->getHelperPluginManager()->getServiceLocator()->get($this->compiler);
              if (!$compiler instanceof AbstractCompiler) {
                  throw new \Exception(sprintf(
                      'Invalid compiler type: %s not instance of Spork\CSS\AbstractCompiler',
                      is_object($compiler) ? get_class($compiler) : gettype($compiler)));
              }
              $this->compiler = $compiler;
          }
          
          return $this->compiler;
      }
code_tokens: public function getCompiler ( ) { if ( ! $ this -> compiler instanceof AbstractCompiler ) { if ( null === $ this -> compiler ) { throw new \ Exception ( 'Compiler not set' ) ; } $ compiler = $ this -> getView ( ) -> getHelperPluginManager ( ) -> getServiceLocator ( ) -> get ( $ this -> compiler ) ; if ( ! $ compiler instanceof AbstractCompiler ) { throw new \ Exception ( sprintf ( 'Invalid compiler type: %s not instance of Spork\CSS\AbstractCompiler' , is_object ( $ compiler ) ? get_class ( $ compiler ) : gettype ( $ compiler ) ) ) ; } $ this -> compiler = $ compiler ; } return $ this -> compiler ; }
docstring: Get compiler instance
  
  @throws \Exception On compiler not set or invalid compiler type found
  @return \Spork\CSS\AbstractCompiler
docstring_tokens: Get compiler instance