Inpsyde\MultilingualPress\Asset\DebugAwareStyle::__construct PHP Method

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( string $handle, string $url, array $dependencies = [], string | null $version = '', string $media = 'all' )
$handle string The handle.
$url string The public URL for the directory containing the file.
$dependencies array Optional. The dependencies. Defaults to empty array.
$version string | null Optional. Version of the file. Defaults to empty string.
$media string Optional. Style media data. Defaults to 'all'.
    public function __construct($handle, $url, array $dependencies = [], $version = '', $media = 'all')
    {
        $this->handle = (string) $handle;
        $this->url = (string) $url;
        $this->dependencies = array_map('strval', $dependencies);
        if (null !== $version) {
            $this->version = (string) $version;
        }
        $this->media = (string) $media;
    }