1 | <?php |
||
28 | class ImagePurgeResult |
||
29 | { |
||
30 | /** |
||
31 | * @var boolean |
||
32 | */ |
||
33 | private $isSuccessful; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $curlErrorMessage; |
||
39 | |||
40 | /** |
||
41 | * @var integer |
||
42 | */ |
||
43 | private $curlErrorCode; |
||
44 | |||
45 | /** |
||
46 | * @var integer |
||
47 | */ |
||
48 | private $curlHttpStatusCode; |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | 2 | public function getCurlErrorMessage() |
|
57 | |||
58 | /** |
||
59 | * @return integer |
||
60 | */ |
||
61 | 2 | public function getCurlErrorCode() |
|
65 | |||
66 | /** |
||
67 | * @return integer |
||
68 | */ |
||
69 | 2 | public function getCurlHttpStatusCode() |
|
73 | |||
74 | /** |
||
75 | * @return boolean |
||
76 | */ |
||
77 | 3 | public function hasCurlErrorMessage() |
|
81 | |||
82 | /** |
||
83 | * @return boolean |
||
84 | */ |
||
85 | 3 | public function hasCurlErrorCode() |
|
89 | |||
90 | /** |
||
91 | * @return boolean |
||
92 | */ |
||
93 | 5 | public function isSuccessful() |
|
97 | |||
98 | /** |
||
99 | * image-purge was not successful |
||
100 | * @param string $curlErrorMessage |
||
101 | * @param integer $curlErrorCode |
||
102 | * @param integer $curlHttpStatusCode |
||
103 | */ |
||
104 | 6 | public function markImagePurgeAsFailed($curlErrorMessage = '', $curlErrorCode = 0, $curlHttpStatusCode = 0) |
|
111 | |||
112 | /** |
||
113 | * image-purge was successful |
||
114 | */ |
||
115 | 2 | public function markImagePurgeAsSuccessful() |
|
119 | } |
||
120 |