Ejemplo n.º 1
0
 public function toArray()
 {
     return self::array_filter_null(array_merge(array('name' => $this->name, 'in' => $this->in === 'form' ? 'formData' : $this->in, 'description' => $this->description, 'required' => $this->in === 'path' || $this->required ? 'true' : null), $this->Type->toArray(), parent::toArray()));
 }
Ejemplo n.º 2
0
 public function toArray()
 {
     return self::array_filter_null(array_merge(array('description' => $this->description), $this->Type->toArray(), parent::toArray()));
 }