1 | <?php |
||
7 | class ArtworkItem extends AbstractBaseItem |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | public $artworkId; |
||
13 | |||
14 | /** |
||
15 | * Display name |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | public $name; |
||
20 | |||
21 | /** |
||
22 | * Is publicly visible |
||
23 | * |
||
24 | * @var bool |
||
25 | */ |
||
26 | public $isPublic; |
||
27 | |||
28 | /** |
||
29 | * Is processing files or products |
||
30 | * |
||
31 | * @var bool |
||
32 | */ |
||
33 | public $isProcessing; |
||
34 | |||
35 | /** |
||
36 | * Public description |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | public $description; |
||
41 | |||
42 | /** |
||
43 | * Public URL to artwork page |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | public $url; |
||
48 | |||
49 | /** |
||
50 | * List of keywords |
||
51 | * |
||
52 | * @var string[] |
||
53 | */ |
||
54 | public $keywords; |
||
55 | |||
56 | /** |
||
57 | * Main artwork file (displayed in artwork public page) |
||
58 | * If artwork is still processing, this value can be missing |
||
59 | * |
||
60 | * @var ArtworkFileItem |
||
61 | */ |
||
62 | public $mainArtworkFile; |
||
63 | |||
64 | /** |
||
65 | * List of additional artwork files throughout all products (if set) |
||
66 | * If artwork is still processing, values can be missing |
||
67 | * |
||
68 | * @var ArtworkFileItem[] |
||
69 | */ |
||
70 | public $artworkFiles = []; |
||
71 | |||
72 | /** |
||
73 | * Artwork products currently enabled |
||
74 | * |
||
75 | * @var ArtworkProductItem[] |
||
76 | */ |
||
77 | public $artworkProducts = []; |
||
78 | |||
79 | /** |
||
80 | * Unix timestamp |
||
81 | * |
||
82 | * @var int |
||
83 | */ |
||
84 | public $createdAt; |
||
85 | |||
86 | /** |
||
87 | * @param array|mixed $raw |
||
88 | * @return ArtworkItem |
||
89 | */ |
||
90 | static function fromArray($raw) |
||
127 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.