SwaggerGen/Swagger/Type/IntegerType.php 1 location
|
@@ 49-56 (lines=8) @@
|
46 |
|
$this->parseDefault($definition, $match); |
47 |
|
} |
48 |
|
|
49 |
|
private function parseFormat($definition, $match) |
50 |
|
{ |
51 |
|
$type = strtolower($match[1]); |
52 |
|
if (!isset(self::$formats[$type])) { |
53 |
|
throw new \SwaggerGen\Exception("Not an integer: '{$definition}'"); |
54 |
|
} |
55 |
|
$this->format = self::$formats[$type]; |
56 |
|
} |
57 |
|
|
58 |
|
private function parseRange($definition, $match) |
59 |
|
{ |
SwaggerGen/Swagger/Type/NumberType.php 1 location
|
@@ 44-50 (lines=7) @@
|
41 |
|
$this->parseDefault($definition, $match); |
42 |
|
} |
43 |
|
|
44 |
|
private function parseFormat($definition, $match) |
45 |
|
{ |
46 |
|
if (!isset(self::$formats[strtolower($match[1])])) { |
47 |
|
throw new \SwaggerGen\Exception("Not a number: '{$definition}'"); |
48 |
|
} |
49 |
|
$this->format = self::$formats[strtolower($match[1])]; |
50 |
|
} |
51 |
|
|
52 |
|
private function parseRange($definition, $match) |
53 |
|
{ |
SwaggerGen/Swagger/Type/StringType.php 1 location
|
@@ 45-52 (lines=8) @@
|
42 |
|
$this->parseDefault($definition, $match); |
43 |
|
} |
44 |
|
|
45 |
|
private function parseFormat($definition, $match) |
46 |
|
{ |
47 |
|
$type = strtolower($match[1]); |
48 |
|
if (!isset(self::$formats[$type])) { |
49 |
|
throw new \SwaggerGen\Exception("Not a string: '{$definition}'"); |
50 |
|
} |
51 |
|
$this->format = self::$formats[$type]; |
52 |
|
} |
53 |
|
|
54 |
|
private function parseContent($definition, $match) |
55 |
|
{ |