Ejemplo n.º 1
0
 public function toArray()
 {
     return self::array_filter_null(array_merge(array('tags' => $this->tags, 'summary' => $this->summary, 'description' => $this->description, 'consumes' => $this->consumes, 'produces' => $this->produces, 'parameters' => $this->parameters ? self::array_toArray($this->parameters) : null, 'responses' => $this->responses ? self::array_toArray($this->responses) : null, 'schemes' => $this->schemes, 'security' => $this->security), 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()));
 }
Ejemplo n.º 3
0
 public function toArray()
 {
     return self::array_filter_null(array_merge(array('swagger' => $this->swagger, 'info' => $this->Info->toArray(), 'host' => $this->host, 'basePath' => $this->basePath, 'schemes' => $this->schemes, 'consumes' => $this->consumes, 'produces' => $this->produces, 'paths' => self::array_toArray($this->Paths), 'definitions' => self::array_toArray($this->definitions), 'securityDefinitions' => self::array_toArray($this->securityDefinitions), 'security' => $this->security, 'tags' => self::array_toArray($this->Tags)), parent::toArray()));
 }