original_string: public function getEventEmitter()
      {
          if (!$this->getContainer()->has(EmitterInterface::class)) {
              $this->getContainer()->share(EmitterInterface::class, new Emitter());
          }
  
          /** @var EmitterInterface $validateContract */
          $validateContract = $this->validateContract($this->getContainer()->get(EmitterInterface::class), EmitterInterface::class);
          return $validateContract;
      }
code: public function getEventEmitter()
      {
          if (!$this->getContainer()->has(EmitterInterface::class)) {
              $this->getContainer()->share(EmitterInterface::class, new Emitter());
          }
  
          /** @var EmitterInterface $validateContract */
          $validateContract = $this->validateContract($this->getContainer()->get(EmitterInterface::class), EmitterInterface::class);
          return $validateContract;
      }
code_tokens: public function getEventEmitter ( ) { if ( ! $ this -> getContainer ( ) -> has ( EmitterInterface :: class ) ) { $ this -> getContainer ( ) -> share ( EmitterInterface :: class , new Emitter ( ) ) ; } /** @var EmitterInterface $validateContract */ $ validateContract = $ this -> validateContract ( $ this -> getContainer ( ) -> get ( EmitterInterface :: class ) , EmitterInterface :: class ) ; return $ validateContract ; }
docstring: Return the event emitter.
  
  @return \League\Event\Emitter|\League\Event\EmitterInterface
docstring_tokens: Return the event emitter .