class-admin-page.php
2 days ago
class-frontend-controller.php
2 days ago
class-multisite-frontend-controller.php
2 days ago
class-script.php
2 days ago
class-style.php
2 days ago
class-style.php
57 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Smush\Core\Frontend; |
| 4 | |
| 5 | class Style { |
| 6 | private $handle; |
| 7 | private $source; |
| 8 | private $dependencies = array(); |
| 9 | private $version; |
| 10 | private $media = 'all'; |
| 11 | |
| 12 | public function get_handle() { |
| 13 | return $this->handle; |
| 14 | } |
| 15 | |
| 16 | public function set_handle( $handle ) { |
| 17 | $this->handle = $handle; |
| 18 | return $this; |
| 19 | } |
| 20 | |
| 21 | public function get_source() { |
| 22 | return $this->source; |
| 23 | } |
| 24 | |
| 25 | public function set_source( $source ) { |
| 26 | $this->source = $source; |
| 27 | return $this; |
| 28 | } |
| 29 | |
| 30 | public function get_dependencies() { |
| 31 | return $this->dependencies; |
| 32 | } |
| 33 | |
| 34 | public function set_dependencies( $dependencies ) { |
| 35 | $this->dependencies = $dependencies; |
| 36 | return $this; |
| 37 | } |
| 38 | |
| 39 | public function get_version() { |
| 40 | return $this->version; |
| 41 | } |
| 42 | |
| 43 | public function set_version( $version ) { |
| 44 | $this->version = $version; |
| 45 | return $this; |
| 46 | } |
| 47 | |
| 48 | public function get_media() { |
| 49 | return $this->media; |
| 50 | } |
| 51 | |
| 52 | public function set_media( $media ) { |
| 53 | $this->media = $media; |
| 54 | return $this; |
| 55 | } |
| 56 | } |
| 57 |