| 1 | <?php  | 
            ||
| 7 | class Theme extends Fluent  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * @var string  | 
            ||
| 11 | */  | 
            ||
| 12 | public $name;  | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * @var string  | 
            ||
| 16 | */  | 
            ||
| 17 | public $theme;  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * @var string  | 
            ||
| 21 | */  | 
            ||
| 22 | public $version;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * @var string  | 
            ||
| 26 | */  | 
            ||
| 27 | public $description;  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * @var array  | 
            ||
| 31 | */  | 
            ||
| 32 | public $positions = [];  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @var string  | 
            ||
| 36 | */  | 
            ||
| 37 | public $type;  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * Theme constructor.  | 
            ||
| 41 | *  | 
            ||
| 42 | * @param string $name  | 
            ||
| 43 | * @param string $theme  | 
            ||
| 44 | * @param string $type  | 
            ||
| 45 | * @param string $version  | 
            ||
| 46 | * @param string $description  | 
            ||
| 47 | * @param array $positions  | 
            ||
| 48 | * @param array|object $attributes  | 
            ||
| 49 | */  | 
            ||
| 50 | public function __construct($name, $theme, $type, $version, $description, array $positions, $attributes = [])  | 
            ||
| 61 | |||
| 62 | /**  | 
            ||
| 63 | * Check if this team is the default theme.  | 
            ||
| 64 | *  | 
            ||
| 65 | * @return bool  | 
            ||
| 66 | */  | 
            ||
| 67 | public function isDefault()  | 
            ||
| 71 | |||
| 72 | /**  | 
            ||
| 73 | * Get theme image preview url.  | 
            ||
| 74 | *  | 
            ||
| 75 | * @return \Illuminate\Contracts\Routing\UrlGenerator|string  | 
            ||
| 76 | */  | 
            ||
| 77 | public function preview()  | 
            ||
| 81 | }  | 
            ||
| 82 |