| 1 | <?php |
||
| 6 | class Scope |
||
| 7 | { |
||
| 8 | /** @var string */ |
||
| 9 | private $name; |
||
| 10 | |||
| 11 | /** @var callable */ |
||
| 12 | private $callback; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $name |
||
| 16 | * @param callable $callback |
||
| 17 | */ |
||
| 18 | 72 | public function __construct(string $name, callable $callback) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | 70 | public function getName(): string |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return callable |
||
| 34 | */ |
||
| 35 | 2 | public function getCallback(): callable |
|
| 39 | } |
||
| 40 |