Item.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 2.6.2, at classes/Models/RuleEngine/Item.php
| 1 | <?php |
| 2 | /** |
| 3 | * Rule engine item model. |
| 4 | * |
| 5 | * @package ContentControl |
| 6 | * @subpackage Models |
| 7 | */ |
| 8 | |
| 9 | namespace ContentControl\Models\RuleEngine; |
| 10 | |
| 11 | /** |
| 12 | * Handler for condition items. |
| 13 | * |
| 14 | * @package ContentControl |
| 15 | */ |
| 16 | abstract class Item { |
| 17 | |
| 18 | /** |
| 19 | * Item id. |
| 20 | * |
| 21 | * @var string |
| 22 | */ |
| 23 | public $id; |
| 24 | |
| 25 | /** |
| 26 | * Return the checks as an array of information. |
| 27 | * |
| 28 | * Useful for debugging. |
| 29 | * |
| 30 | * @return array<mixed> |
| 31 | */ |
| 32 | abstract public function get_check_info(); |
| 33 | } |
| 34 |