@@ -83,6 +83,7 @@ class Image extends BaseCmsService
83
83
protected ImageEntity $ entity ;
84
84
protected static ?string $ buildFileExtension = null ;
85
85
protected ?string $ lastBuiltImageMimeType = null ;
86
+ protected int $ tempOrder = 1 ;
86
87
87
88
88
89
public function __construct (protected Factory $ factory )
@@ -390,15 +391,30 @@ public static function getClientSupportedBestFormat() : string
390
391
391
392
public static function getNewsletterSpotlightId () : int
392
393
{
393
- return
394
- array_rand (array_flip (static ::IDS_NEWSLETTER_SPOTLIGHT ));
394
+ return array_rand (array_flip (static ::IDS_NEWSLETTER_SPOTLIGHT ));
395
395
}
396
396
397
- public function getFormat () : ?string { return $ this ->entity ->getFormat (); }
398
397
399
398
public function getUrl (Article $ article , string $ size ) : string
400
- { return $ this ->factory ->getImageUrlGenerator ()->generateUrl ($ this , $ article , $ size ); }
399
+ {
400
+ return $ this ->factory ->getImageUrlGenerator ()->generateUrl ($ this , $ article , $ size );
401
+ }
402
+
401
403
402
404
public function getShortUrl (string $ size ) : string
403
- { return $ this ->factory ->getImageUrlGenerator ()->generateShortUrl ($ this , $ size ); }
405
+ {
406
+ return $ this ->factory ->getImageUrlGenerator ()->generateShortUrl ($ this , $ size );
407
+ }
408
+
409
+
410
+ public function getFormat () : ?string { return $ this ->entity ->getFormat (); }
411
+
412
+
413
+ public function getTempOrder () : int { return $ this ->tempOrder ; }
414
+
415
+ public function setTempOrder (int $ tempOrder ) : static
416
+ {
417
+ $ this ->tempOrder = $ tempOrder ;
418
+ return $ this ;
419
+ }
404
420
}
0 commit comments