PHP Method Schema::toArray, someline-starter Code Examples

This page contains top rated real world PHP examples of method Schema::toArray from package someline-starter extracted from open source projects. You can rate examples to help us improve the quality of examples
Frequently Used Methods
Example #1
Show file File: SchemaWriter.php Project: sigma-z/dive
1
 /**
  * gets schema formatted content
  *
  * @return string
  */
 public function getContent()
 {
     $schemaDefinition = $this->schema->toArray();
     $content = \Dive\Util\VarExport::export($schemaDefinition, array('removeLastComma' => true));
     $content = "<?php\n\nreturn {$content};";
     return $content;
 }
Example #2
Show file File: BodyParameter.php Project: skystebnicki/PHPSwaggerGen
0
 public function toArray()
 {
     return self::array_filter_null(array_merge(array('name' => $this->name, 'in' => 'body', 'description' => $this->description, 'required' => $this->required ? 'true' : null, 'schema' => $this->schema->toArray()), parent::toArray()));
 }