| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\AtomicWidgets\Styles; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly. |
| 7 |
} |
| 8 |
|
| 9 |
class Style_File { |
| 10 |
private string $handle; |
| 11 |
private string $path; |
| 12 |
private string $url; |
| 13 |
private string $media; |
| 14 |
|
| 15 |
private function __construct( string $handle, string $path, string $url, string $media ) { |
| 16 |
$this->handle = $handle; |
| 17 |
$this->path = $path; |
| 18 |
$this->url = $url; |
| 19 |
$this->media = $media; |
| 20 |
} |
| 21 |
|
| 22 |
public static function create( string $handle, string $path, string $url, string $media ): self { |
| 23 |
return new self( $handle, $path, $url, $media ); |
| 24 |
} |
| 25 |
|
| 26 |
public function get_handle(): string { |
| 27 |
return $this->handle; |
| 28 |
} |
| 29 |
|
| 30 |
public function get_path(): string { |
| 31 |
return $this->path; |
| 32 |
} |
| 33 |
|
| 34 |
public function get_url(): string { |
| 35 |
return $this->url; |
| 36 |
} |
| 37 |
|
| 38 |
public function get_media(): string { |
| 39 |
return $this->media; |
| 40 |
} |
| 41 |
} |
| 42 |
|