getMaxWidth() публичный Метод

Fetch the maximum width present in the set of transformations
public getMaxWidth ( integer $width, integer $height, array $transformations ) : array | null
$width integer The width of the existing image
$height integer The height of the existing image
$transformations array Transformations from the URL
Результат array | null Returns an array with a single element where the index is the index of the transformation that has the maximum width, and the value of the width
Пример #1
0
 /**
  * @dataProvider getTransformations
  */
 public function testCanGetTheMinWidthFromASetOfTransformations($width, $height, array $transformations, $maxWidth)
 {
     $calculatedMax = $this->listener->getMaxWidth($width, $height, $transformations);
     $this->assertSame(is_null($maxWidth) ? null : array_map('intval', $maxWidth), is_null($calculatedMax) ? null : array_map('intval', $calculatedMax), 'Could not figure out the minimum width');
 }