lib/Naming/ShortAccuratePropsNamingStrategy.php 1 location
|
@@ 11-18 (lines=8) @@
|
| 8 |
|
class ShortAccuratePropsNamingStrategy implements NamingStrategy |
| 9 |
|
{ |
| 10 |
|
|
| 11 |
|
public function getTypeName(Type $type) |
| 12 |
|
{ |
| 13 |
|
$name = $this->classify($type->getName()); |
| 14 |
|
if ($name && substr($name, -4) !== 'Type') { |
| 15 |
|
$name .= "Type"; |
| 16 |
|
} |
| 17 |
|
return $name; |
| 18 |
|
} |
| 19 |
|
|
| 20 |
|
public function getAnonymousTypeName(Type $type, $parentName) |
| 21 |
|
{ |
lib/Naming/ShortNamingStrategy.php 1 location
|
@@ 11-18 (lines=8) @@
|
| 8 |
|
class ShortNamingStrategy implements NamingStrategy |
| 9 |
|
{ |
| 10 |
|
|
| 11 |
|
public function getTypeName(Type $type) |
| 12 |
|
{ |
| 13 |
|
$name = $this->classify($type->getName()); |
| 14 |
|
if ($name && substr($name, -4) !== 'Type') { |
| 15 |
|
$name .= "Type"; |
| 16 |
|
} |
| 17 |
|
return $name; |
| 18 |
|
} |
| 19 |
|
|
| 20 |
|
public function getAnonymousTypeName(Type $type, $parentName) |
| 21 |
|
{ |