src/Naming/LongNamingStrategy.php 1 location
|
@@ 34-41 (lines=8) @@
|
| 31 |
|
return $this->classify($parentName) . "AnonymousType"; |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function getItemName(Item $item) |
| 35 |
|
{ |
| 36 |
|
$name = $this->classify($item->getName()); |
| 37 |
|
if (in_array(strtolower($name), $this->reservedWords)) { |
| 38 |
|
$name .= 'Xsd'; |
| 39 |
|
} |
| 40 |
|
return $name; |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
public function getPropertyName($item) |
| 44 |
|
{ |
src/Naming/ShortNamingStrategy.php 1 location
|
@@ 43-50 (lines=8) @@
|
| 40 |
|
return Inflector::camelize(str_replace(".", " ", $item->getName())); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
public function getItemName(Item $item) |
| 44 |
|
{ |
| 45 |
|
$name = $this->classify($item->getName()); |
| 46 |
|
if (in_array(strtolower($name), $this->reservedWords)) { |
| 47 |
|
$name .= 'Xsd'; |
| 48 |
|
} |
| 49 |
|
return $name; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
private function classify($name) |
| 53 |
|
{ |