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