| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Supplier implements SupplierInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Name of the class, whose instance will be provided |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $className; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Construct a new supplier |
||
| 21 | * |
||
| 22 | * @param string $className - the class name |
||
| 23 | */ |
||
| 24 | 44 | public function __construct(string $className) |
|
| 27 | 44 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Get the specified class instance |
||
| 31 | * |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | 32 | public function get() |
|
| 39 |