| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class StringSupplier implements SupplierInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Supplier value |
||
| 14 | * |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private static $i = 0; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Construct supplier value |
||
| 21 | * |
||
| 22 | * @param int $start - starting value |
||
| 23 | */ |
||
| 24 | 1 | public function __construct(int $start) |
|
| 25 | { |
||
| 26 | 1 | self::$i = $start; |
|
| 27 | 1 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Get supplier value |
||
| 31 | * |
||
| 32 | * @return int |
||
| 33 | */ |
||
| 34 | 1 | public function get(): string |
|
| 37 | } |
||
| 38 | } |
||
| 39 |