Skip to content

Commit 2fe7812

Browse files
Add doc
1 parent 3e52cfe commit 2fe7812

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/class-tiny-settings.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ protected static function get_intermediate_size( $size ) {
239239
return array( null, null );
240240
}
241241

242+
/**
243+
* Retrieves image sizes as a map of size and width, height and tinify meta data
244+
* The first entry will always be '0', aka the original uploaded image.
245+
*
246+
* @return array{string: array{width: int|null, height: int|null, tinify: array{}}} $sizes
247+
*/
242248
public function get_sizes() {
243249
if ( is_array( $this->sizes ) ) {
244250
return $this->sizes;
@@ -374,7 +380,7 @@ public function get_resize_options( $size_name ) {
374380
/**
375381
* Retrieves the configured settings for conversion.
376382
*
377-
* @return array{ convert: bool, convert_to: string } The conversion options.
383+
* @return array{ convert: bool, convert_to: array{string} } The conversion options.
378384
*/
379385
public function get_conversion_options() {
380386
return array(

0 commit comments

Comments
 (0)