| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace RenzoJohnson\Blocks\Settings; |
| 6 |
|
| 7 |
\defined( 'ABSPATH' ) || exit; |
| 8 |
|
| 9 |
final class SectionDefinition { |
| 10 |
/** |
| 11 |
* @param list<string> $description_paragraphs |
| 12 |
* @param list<FieldDefinition> $fields |
| 13 |
*/ |
| 14 |
public function __construct( |
| 15 |
public readonly string $id, |
| 16 |
public readonly string $label, |
| 17 |
public readonly array $description_paragraphs, |
| 18 |
public readonly array $fields, |
| 19 |
public readonly bool $honeypot_description = false, |
| 20 |
) { |
| 21 |
} |
| 22 |
} |
| 23 |
|