PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.1
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.1
1.7.1 1.7.0 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 All 51 releases
fluent-cart / app / Services / Theme / Readers / ThemeRadiusReader.php

ThemeRadiusReader.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.7.1, at app/Services/Theme/Readers/ThemeRadiusReader.php

30 lines 1013 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentCart\App\Services\Theme\Readers;
4
5 /**
6 * Reads the border radii a theme's owner set in the theme's own settings.
7 *
8 * A separate contract from ThemeSettingsReader on purpose: adding a method to
9 * that interface would break every third-party class implementing it. A
10 * reader that can read a radius implements both.
11 *
12 * Like the colours, a reader states only what the theme states: a role the
13 * theme has no setting for is omitted, never guessed, and FluentCart prints
14 * nothing for it.
15 */
16 interface ThemeRadiusReader
17 {
18 /**
19 * Role => the length the theme states, as the theme prints it.
20 *
21 * Roles: card, btn, input (RadiusPalette::roles()). ThemePalette::radii()
22 * normalises each value through RadiusPalette::sanitizeLength(), so a
23 * value outside that grammar (a percentage, calc(), several corners) is
24 * dropped there; return '' or omit the role rather than guess.
25 *
26 * @return array
27 */
28 public static function radii(): array;
29 }
30