| 1 | <?php |
||
| 23 | class QueryDataPlugin implements Plugin |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | private $data; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var bool |
||
| 32 | */ |
||
| 33 | private $force; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param array $data |
||
| 37 | * @param bool $force If true we overwrite existing values |
||
| 38 | */ |
||
| 39 | public function __construct(array $data, $force = false) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function handleQuery(Query $query, callable $next, callable $first) |
||
| 59 | } |
||
| 60 |