| @@ -11,8 +11,9 @@ | ||
| 11 | 11 | private const INITIAL_META_VALUE = [ |
| 12 | 12 | 'status' => Image_Status::NOT_OPTIMIZED, |
| 13 | 13 | 'error_type' => null, |
| 14 | 14 | 'compression_level' => null, |
| 15 | + 'retry_count' => null, | |
| 15 | 16 | 'sizes_optimized' => [], |
| 16 | 17 | 'backups' => [], |
| 17 | 18 | 'original_data' => [ |
| 18 | 19 | 'sizes' => [], |
| @@ -47,8 +48,18 @@ | ||
| 47 | 48 | } |
| 48 | 49 | |
| 49 | 50 | public function set_compression_level( string $compression_level ): Image_Meta { |
| 50 | 51 | $this->image_meta['compression_level'] = $compression_level; |
| 52 | + | |
| 53 | + return $this; | |
| 54 | + } | |
| 55 | + | |
| 56 | + public function get_retry_count(): ?int { | |
| 57 | + return $this->image_meta['retry_count']; | |
| 58 | + } | |
| 59 | + | |
| 60 | + public function set_retry_count( ?int $retry_count ): Image_Meta { | |
| 61 | + $this->image_meta['retry_count'] = $retry_count; | |
| 51 | 62 | |
| 52 | 63 | return $this; |
| 53 | 64 | } |
| 54 | 65 | |