PluginProbe
The Innovative Form Builder – IvyForms / 1.5
The Innovative Form Builder – IvyForms v1.5
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Services / Form / Style / StyleGeneratorInterface.php

StyleGeneratorInterface.php in The Innovative Form Builder – IvyForms 1.5, at backend/src/Services/Form/Style/StyleGeneratorInterface.php

35 lines 800 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @copyright © Melograno Venture Studio. All rights reserved.
5 * @licence See LICENCE.md for license details.
6 */
7
8 namespace IvyForms\Services\Form\Style;
9
10 // phpcs:disable PSR1.Files.SideEffects
11
12 if (!defined('ABSPATH')) {
13 exit; // Exit if accessed directly
14 }
15
16 /**
17 * Interface StyleGeneratorInterface
18 *
19 * Contract for all style generators.
20 * Generators implement this interface to generate CSS rules for a specific aspect of form styling.
21 *
22 * @package IvyForms\Common\Helpers\StyleHelpers
23 */
24 interface StyleGeneratorInterface
25 {
26 /**
27 * Generate CSS rules for the specific styling aspect
28 *
29 * @param CssBuilder $css
30 * @param StyleContext $context
31 * @return void
32 */
33 public function generate(CssBuilder $css, StyleContext $context): void;
34 }
35