| 1 | <?php |
||
| 16 | class BulkEvent extends Event |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $operation; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string|array |
||
| 25 | */ |
||
| 26 | private $type; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | private $query; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $operation |
||
| 35 | * @param string|array $type |
||
| 36 | * @param array $query |
||
| 37 | */ |
||
| 38 | public function __construct($operation, $type, array $query) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return array|string |
||
| 47 | */ |
||
| 48 | public function getType() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param array|string $type |
||
| 55 | */ |
||
| 56 | public function setType($type) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return array |
||
| 63 | */ |
||
| 64 | public function getQuery() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param array $query |
||
| 71 | */ |
||
| 72 | public function setQuery($query) |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return array |
||
| 79 | */ |
||
| 80 | public function getOperation() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @param string $operation |
||
| 87 | */ |
||
| 88 | public function setOperation($operation) |
||
| 92 | } |
||
| 93 |