Field.php
4 weeks ago
FieldInterface.php
4 weeks ago
Fields.php
4 weeks ago
FieldsInterface.php
4 weeks ago
Integrator.php
4 weeks ago
IntegratorIntegration.php
4 weeks ago
IntegratorInterface.php
4 weeks ago
Section.php
4 weeks ago
SectionInterface.php
4 weeks ago
Sections.php
4 weeks ago
SectionsInterface.php
4 weeks ago
Value.php
4 weeks ago
ValueInterface.php
4 weeks ago
Section.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPDesk\FCF\Free\Integration; |
| 4 | |
| 5 | /** |
| 6 | * . |
| 7 | */ |
| 8 | class Section implements SectionInterface { |
| 9 | |
| 10 | /** |
| 11 | * Settings of field section. |
| 12 | * |
| 13 | * @var array |
| 14 | */ |
| 15 | private $section_data; |
| 16 | |
| 17 | /** |
| 18 | * Class constructor. |
| 19 | * |
| 20 | * @param array $section_data Settings of field section. |
| 21 | */ |
| 22 | public function __construct( array $section_data ) { |
| 23 | $this->section_data = $section_data; |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Returns key of field section. |
| 28 | * |
| 29 | * @return string Section key. |
| 30 | */ |
| 31 | public function get_section_key(): string { |
| 32 | return $this->section_data['section']; |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Returns label of field section. |
| 37 | * |
| 38 | * @return string Section label. |
| 39 | */ |
| 40 | public function get_section_label(): string { |
| 41 | return $this->section_data['tab_title']; |
| 42 | } |
| 43 | } |
| 44 |