| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Stub |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $name; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Class constructor. |
||
| 16 | * |
||
| 17 | * @param string $name |
||
| 18 | */ |
||
| 19 | 2 | public function __construct(string $name) |
|
| 22 | 2 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Get the name of the stub. |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | 2 | public function getName() |
|
| 30 | { |
||
| 31 | 2 | return $this->name; |
|
| 32 | } |
||
| 33 | |||
| 34 | |||
| 35 | /** |
||
| 36 | * Invoke stub |
||
| 37 | * |
||
| 38 | * @param iterable $iterable |
||
| 39 | * @return iterable |
||
| 40 | */ |
||
| 41 | 1 | public function __invoke(iterable $iterable) |
|
| 44 | } |
||
| 45 | } |