src/Api/Php/Clazz.php 1 location
|
@@ 101-107 (lines=7) @@
|
| 98 |
|
|
| 99 |
|
$pos = strrpos($className, '\\'); |
| 100 |
|
|
| 101 |
|
if (false === $pos) { |
| 102 |
|
$this->namespaceName = ''; |
| 103 |
|
$this->shortClassName = $className; |
| 104 |
|
} else { |
| 105 |
|
$this->namespaceName = substr($className, 0, $pos); |
| 106 |
|
$this->shortClassName = substr($className, $pos + 1); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
return $this; |
| 110 |
|
} |
src/Api/Php/Import.php 1 location
|
@@ 54-60 (lines=7) @@
|
| 51 |
|
|
| 52 |
|
$pos = strrpos($className, '\\'); |
| 53 |
|
|
| 54 |
|
if (false === $pos) { |
| 55 |
|
$this->namespaceName = ''; |
| 56 |
|
$this->shortClassName = $className; |
| 57 |
|
} else { |
| 58 |
|
$this->namespaceName = substr($className, 0, $pos); |
| 59 |
|
$this->shortClassName = substr($className, $pos + 1); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
$this->alias = $alias; |
| 63 |
|
} |