original_string: private function createReporter($reporter)
      {
          $reflection = new ReflectionClass($reporter);
  
          if ($reflection->implementsInterface(self::REPORTER) === false) {
              throw NotAvailableException::createForReporter(self::REPORTER);
          }
  
          return $reflection->newInstance();
      }
code: private function createReporter($reporter)
      {
          $reflection = new ReflectionClass($reporter);
  
          if ($reflection->implementsInterface(self::REPORTER) === false) {
              throw NotAvailableException::createForReporter(self::REPORTER);
          }
  
          return $reflection->newInstance();
      }
code_tokens: private function createReporter ( $ reporter ) { $ reflection = new ReflectionClass ( $ reporter ) ; if ( $ reflection -> implementsInterface ( self :: REPORTER ) === false ) { throw NotAvailableException :: createForReporter ( self :: REPORTER ) ; } return $ reflection -> newInstance ( ) ; }
docstring: Create a new result reporter
  
  @param string $reporter
  
  @return \expect\ResultReporter
docstring_tokens: Create a new result reporter