| Total Complexity | 3 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | from pyjection.helper import get_service_subject_identifier |
|
| 4 | 1 | class Reference(object): |
|
| 5 | """ |
||
| 6 | Base class used when a service needs to register a dependency to another service |
||
| 7 | """ |
||
| 8 | |||
| 9 | 1 | def __init__(self, name): |
|
| 10 | 1 | self._name = name |
|
| 11 | 1 | if isinstance(name, str) is False: |
|
| 12 | self._name = get_service_subject_identifier(name) |
||
| 13 | |||
| 14 | 1 | @property |
|
| 15 | def name(self): |
||
| 16 | return self._name |
||
| 17 |