original_string: function assign($array)
      {
          if (!is_array($array) && !($array instanceof \Traversable)) {
              throw new \InvalidArgumentException('$array must be array or Traversable.');
          }
  
          foreach ($array as $key => $value) {
              $this->storage[$key] = $value;
          }
      }
code: function assign($array)
      {
          if (!is_array($array) && !($array instanceof \Traversable)) {
              throw new \InvalidArgumentException('$array must be array or Traversable.');
          }
  
          foreach ($array as $key => $value) {
              $this->storage[$key] = $value;
          }
      }
code_tokens: function assign ( $ array ) { if ( ! is_array ( $ array ) && ! ( $ array instanceof \ Traversable ) ) { throw new \ InvalidArgumentException ( '$array must be array or Traversable.' ) ; } foreach ( $ array as $ key => $ value ) { $ this -> storage [ $ key ] = $ value ; } }
docstring: assign view vars
  @param array|\Traversable $array
docstring_tokens: assign view vars