| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class CssCode |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @param string $sCode |
||
| 21 | * @param array $aFiles |
||
| 22 | */ |
||
| 23 | public function __construct(protected string $sCode = '', protected array $aFiles = []) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the CSS code to include into the page |
||
| 28 | * |
||
| 29 | * The code must NOT be enclosed in HTML tags. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function code(): string |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get the CSS files to include into the page |
||
| 40 | * |
||
| 41 | * Each entry can be a string or an array with "uri" and "options". |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function files(): array |
||
| 50 |