| 1 | <?php |
||
| 19 | class IndexResetEvent extends IndexEvent |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @Event("FOS\ElasticaBundle\Event\IndexResetEvent") |
||
| 23 | */ |
||
| 24 | const PRE_INDEX_RESET = 'elastica.index.pre_reset'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @Event("FOS\ElasticaBundle\Event\IndexResetEvent") |
||
| 28 | */ |
||
| 29 | const POST_INDEX_RESET = 'elastica.index.post_reset'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var bool |
||
| 33 | */ |
||
| 34 | private $force; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var bool |
||
| 38 | */ |
||
| 39 | private $populating; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $index |
||
| 43 | * @param bool $populating |
||
| 44 | * @param bool $force |
||
| 45 | */ |
||
| 46 | 11 | public function __construct($index, $populating, $force) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | public function isForce() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return bool |
||
| 64 | */ |
||
| 65 | public function isPopulating() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param bool $force |
||
| 72 | */ |
||
| 73 | public function setForce($force) |
||
| 77 | } |
||
| 78 |