PluginProbe
seQura / 3.2.2
seQura v3.2.2
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / src / Services / Assets / class-assets.php

class-assets.php in seQura 3.2.2, at src/Services/Assets/class-assets.php

21 lines 480 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Implements the Assets service.
4 *
5 * @package SeQura/WC
6 * @subpackage SeQura/WC/Services
7 */
8 namespace SeQura\WC\Services\Assets;
9
10 /**
11 * Assets
12 */
13 class Assets implements Interface_Assets {
14 /**
15 * Get the URI of a resource in the CDN. If the environment is not set, it returns an empty string.
16 */
17 public function get_cdn_resource_uri( ?string $env, string $resource ): string {
18 return !$env ? '' : "https://{$env}.sequracdn.com/assets/{$resource}";
19 }
20 }
21