1 | <?php |
||
7 | class ArtworkProductItem extends AbstractBaseItem |
||
8 | { |
||
9 | /** |
||
10 | * Product identifier |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | public $productType; |
||
15 | |||
16 | /** |
||
17 | * Public product name (T-shirt, etc) |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | public $name; |
||
22 | |||
23 | /** |
||
24 | * Public products page (purchase page) |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | public $url; |
||
29 | |||
30 | /** |
||
31 | * Thumbnail image URL |
||
32 | * @var |
||
33 | */ |
||
34 | public $urlThumb; |
||
35 | |||
36 | /** |
||
37 | * Your profit for this product |
||
38 | * |
||
39 | * @var float |
||
40 | */ |
||
41 | public $profit; |
||
42 | |||
43 | /** |
||
44 | * @param array|mixed $raw |
||
45 | * @return ArtworkProductItem |
||
46 | */ |
||
47 | static function fromArray($raw) |
||
61 | } |
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.