original_string: public function add($alert, $type = null)
      {
          $this->_alert = new stdClass;
          $this->_alert->alert = $alert;
          if (!is_null($type)) {
              $this->_alert->type = $type;
          }
  
          $this->notify();
      }
code: public function add($alert, $type = null)
      {
          $this->_alert = new stdClass;
          $this->_alert->alert = $alert;
          if (!is_null($type)) {
              $this->_alert->type = $type;
          }
  
          $this->notify();
      }
code_tokens: public function add ( $ alert , $ type = null ) { $ this -> _alert = new stdClass ; $ this -> _alert -> alert = $ alert ; if ( ! is_null ( $ type ) ) { $ this -> _alert -> type = $ type ; } $ this -> notify ( ) ; }
docstring: Add an alert.
  
  @param string $alert  The alert string.
  @param string $type   The alert type.
docstring_tokens: Add an alert .