| Conditions | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | from pyjection.helper import get_service_subject_identifier |
|
| 9 | 1 | def __init__(self, name, return_class=False): |
|
| 10 | """ |
||
| 11 | :param name: Name of the reference or a class |
||
| 12 | :type name: mixed |
||
| 13 | :param return_class: Whether the reference is on an instance of the other service or a class |
||
| 14 | :type return_class: bool |
||
| 15 | """ |
||
| 16 | 1 | self._name = name |
|
| 17 | 1 | if isinstance(name, str) is False: |
|
| 18 | 1 | self._name = get_service_subject_identifier(name) |
|
| 19 | 1 | self._return_class = return_class |
|
| 20 | |||
| 28 |