| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function name(ReflectionClass $class = null, array $interfaces) |
||
| 35 | { |
||
| 36 | $parts = array(); |
||
| 37 | |||
| 38 | if (null !== $class) { |
||
| 39 | $parts[] = $class->getName(); |
||
| 40 | } else { |
||
| 41 | foreach ($interfaces as $interface) { |
||
| 42 | $parts[] = $interface->getShortName(); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | if (!count($parts)) { |
||
| 47 | $parts[] = 'stdClass'; |
||
| 48 | } |
||
| 49 | |||
| 50 | return sprintf('Double\%s\P%d', implode('\\', $parts), self::$counter++); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |