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