| 1 | <?php |
||
| 18 | class AliasDefinition |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Entry name. |
||
| 22 | * |
||
| 23 | * @var string|null |
||
| 24 | */ |
||
| 25 | private $name; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Name of the target entry. |
||
| 29 | * |
||
| 30 | * @var string|null |
||
| 31 | */ |
||
| 32 | private $targetName; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * AliasDefinition constructor. |
||
| 36 | * |
||
| 37 | * @param string|null $name Entry name |
||
| 38 | * @param string|null $targetName Name of the target entry |
||
| 39 | */ |
||
| 40 | public function __construct($name = null, $targetName = null) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Extract name from target entry. |
||
| 48 | * |
||
| 49 | * @param string $targetName |
||
| 50 | */ |
||
| 51 | public function aliasFromNamespace($targetName) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string|null Entry name |
||
| 61 | */ |
||
| 62 | public function getName() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return string|null Name of the target entry |
||
| 69 | */ |
||
| 70 | public function getTargetName() |
||
| 74 | } |
||
| 75 |