Example #1
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     // flatten the array keys
     return array_values(parent::toArray());
 }
 /**
  * {@inheritdoc}
  */
 public function toJson($options = 0)
 {
     if (func_num_args() === 0) {
         $options = JSON_NUMERIC_CHECK;
     }
     return parent::toJson($options);
 }