| 1 | <?php |
||
| 19 | abstract class IndexPopulateEvent extends IndexEvent |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var bool |
||
| 23 | */ |
||
| 24 | private $reset; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | private $options; |
||
| 30 | |||
| 31 | 2 | public function __construct(string $index, bool $reset, array $options) |
|
| 38 | |||
| 39 | 2 | public function isReset(): bool |
|
| 43 | |||
| 44 | public function getOptions(): array |
||
| 48 | |||
| 49 | public function setReset(bool $reset) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return mixed |
||
| 56 | * |
||
| 57 | * @throws \InvalidArgumentException if option does not exist |
||
| 58 | */ |
||
| 59 | 1 | public function getOption(string $name) |
|
| 67 | |||
| 68 | /** |
||
| 69 | * @param string $name |
||
| 70 | * @param mixed $value |
||
| 71 | */ |
||
| 72 | public function setOption($name, $value) |
||
| 76 | } |
||
| 77 |