original_string: public function logEvent(array $events = [])
      {
          foreach ($events as $event) {
              if (!in_array($event, $this->loggerInstance->logEvents, true)) {
                  $this->loggerInstance->logEvents[] = $event;
              }
          }
  
          return $this;
      }
code: public function logEvent(array $events = [])
      {
          foreach ($events as $event) {
              if (!in_array($event, $this->loggerInstance->logEvents, true)) {
                  $this->loggerInstance->logEvents[] = $event;
              }
          }
  
          return $this;
      }
code_tokens: public function logEvent ( array $ events = [ ] ) { foreach ( $ events as $ event ) { if ( ! in_array ( $ event , $ this -> loggerInstance -> logEvents , true ) ) { $ this -> loggerInstance -> logEvents [ ] = $ event ; } } return $ this ; }
docstring: log given events by given name
  
  @param array $events
  @return $this
docstring_tokens: log given events by given name