| 1 | <?php |
||
| 19 | abstract class AbstractIndexPopulateEvent extends AbstractIndexEvent |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var bool |
||
| 23 | */ |
||
| 24 | protected $reset; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $options; |
||
| 30 | |||
| 31 | 10 | public function __construct(string $index, bool $reset, array $options) |
|
| 38 | |||
| 39 | 6 | public function isReset(): bool |
|
| 43 | |||
| 44 | 4 | public function getOptions(): array |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return mixed |
||
| 51 | * |
||
| 52 | * @throws \InvalidArgumentException if option does not exist |
||
| 53 | */ |
||
| 54 | 5 | public function getOption(string $name) |
|
| 62 | } |
||
| 63 |