| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class CssCode |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @param string $sCode |
||
| 21 | * @param string $sHtml |
||
| 22 | * @param array $aUrls |
||
| 23 | */ |
||
| 24 | public function __construct(protected string $sCode = '', |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get the CSS files to include into the page |
||
| 30 | * |
||
| 31 | * Each entry can be a string or an array with "uri" and "options". |
||
| 32 | * |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | public function urls(): array |
||
| 36 | { |
||
| 37 | return $this->aUrls; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the CSS code to include into the page |
||
| 42 | * |
||
| 43 | * The code must NOT be enclosed in HTML tags. |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function code(): string |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the CSS code to include into the page |
||
| 54 | * |
||
| 55 | * The code must be enclosed in HTML tags. |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function html(): string |
||
| 62 | } |
||
| 63 | } |
||
| 64 |