| 1 |
<?php |
| 2 |
/** |
| 3 |
* Abstract data collector for structured data. |
| 4 |
* |
| 5 |
* @package ContentControl |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace ContentControl\QueryMonitor; |
| 9 |
|
| 10 |
use QM_Data; |
| 11 |
|
| 12 |
defined( 'ABSPATH' ) || exit; |
| 13 |
|
| 14 |
/** |
| 15 |
* Class data collector for structured data. |
| 16 |
*/ |
| 17 |
class Data extends QM_Data { |
| 18 |
|
| 19 |
/** |
| 20 |
* Main query restriction. |
| 21 |
* |
| 22 |
* @var \ContentControl\Models\Restriction|null |
| 23 |
*/ |
| 24 |
public $main_query_restriction = null; |
| 25 |
|
| 26 |
/** |
| 27 |
* Main query post restrictions. |
| 28 |
* |
| 29 |
* @var array<array{restriction: \ContentControl\Models\Restriction, posts: int[]}> |
| 30 |
*/ |
| 31 |
public $restrict_main_query_posts = []; |
| 32 |
|
| 33 |
/** |
| 34 |
* List of posts checked for restrictions and their restrictions. |
| 35 |
* |
| 36 |
* @var array<array<string,mixed>> |
| 37 |
*/ |
| 38 |
public $user_can_view_content = []; |
| 39 |
} |
| 40 |
|