original_string: public function addRules($rules)
      {
          foreach ($rules as $rule) {
              $this->addrule($rule[0], $rule[1], $rule[2], isset($rule[3])?$rule[3]:null);
          }
      }
code: public function addRules($rules)
      {
          foreach ($rules as $rule) {
              $this->addrule($rule[0], $rule[1], $rule[2], isset($rule[3])?$rule[3]:null);
          }
      }
code_tokens: public function addRules ( $ rules ) { foreach ( $ rules as $ rule ) { $ this -> addrule ( $ rule [ 0 ] , $ rule [ 1 ] , $ rule [ 2 ] , isset ( $ rule [ 3 ] ) ? $ rule [ 3 ] : null ) ; } }
docstring: Add transition rules
  
  array structure:
  array( array(sourseState, input, targetState[, inputAction]),
  array(sourseState, input, targetState[, inputAction]),
  array(sourseState, input, targetState[, inputAction]),
  ...
  )
  
  @param array $rules
docstring_tokens: Add transition rules