for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* CssCode.php
*
* The CSS codes generated by a Jaxon plugin.
* @package jaxon-core
* @author Thierry Feuzeu <[email protected]>
* @copyright 2025 Thierry Feuzeu <[email protected]>
* @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
* @link https://github.com/jaxon-php/jaxon-core
*/
namespace Jaxon\Plugin;
class CssCode
{
* @param string $sCode
* @param array $aUrls
public function __construct(protected string $sCode = '', protected array $aUrls = [])
{}
* Get the CSS files to include into the page
* Each entry can be a string or an array with "uri" and "options".
* @return array
public function urls(): array
return $this->aUrls;
}
* Get the CSS code to include into the page
* The code must NOT be enclosed in HTML tags.
* @return string
public function code(): string
return $this->sCode;