original_string: public function offsetSet($offset, $value)
      {
          if (is_null($offset)) {
              $this->_args[count($this->_args)] = $value;
          } else {
              if (is_int($offset)) {
                  $this->_args[$offset] = $value;
              } else {
                  throw new \Exception('Cannot set offset \''.$offset.'\' of IndexedArray.');
              }
          }
      }
code: public function offsetSet($offset, $value)
      {
          if (is_null($offset)) {
              $this->_args[count($this->_args)] = $value;
          } else {
              if (is_int($offset)) {
                  $this->_args[$offset] = $value;
              } else {
                  throw new \Exception('Cannot set offset \''.$offset.'\' of IndexedArray.');
              }
          }
      }
code_tokens: public function offsetSet ( $ offset , $ value ) { if ( is_null ( $ offset ) ) { $ this -> _args [ count ( $ this -> _args ) ] = $ value ; } else { if ( is_int ( $ offset ) ) { $ this -> _args [ $ offset ] = $ value ; } else { throw new \ Exception ( 'Cannot set offset \'' . $ offset . '\' of IndexedArray.' ) ; } } }
docstring: Override the offsetSet function to enforce
  integral keys only.
  
  @param  mixed $offset
  @param  mixed $value
  
  @throws \Exception
docstring_tokens: Override the offsetSet function to enforce integral keys only .