| 1 | <?php |
||
| 7 | class ArtworkFileItem extends AbstractBaseItem |
||
| 8 | { |
||
| 9 | const STATUS_PROCESSING = 'processing'; |
||
| 10 | const STATUS_FAILED = 'failed'; |
||
| 11 | const STATUS_OK = 'ok'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * One of the statuses defined |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | public $status; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * If image has failed, reason given here |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | public $reasonFailed; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | public $urlLarge; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | public $urlMedium; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param array|mixed $raw |
||
| 39 | * @return ArtworkFileItem|null |
||
| 40 | */ |
||
| 41 | static function fromArray($raw) |
||
| 58 | } |
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.