Neos\Media\Domain\Model\ThumbnailConfiguration::__construct PHP Метод

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

public __construct ( integer $width = null, integer $maximumWidth = null, integer $height = null, integer $maximumHeight = null, boolean $allowCropping = false, boolean $allowUpScaling = false, boolean $async = false )
$width integer Desired width of the image
$maximumWidth integer Desired maximum width of the image
$height integer Desired height of the image
$maximumHeight integer Desired maximum height of the image
$allowCropping boolean Whether the image should be cropped if the given sizes would hurt the aspect ratio
$allowUpScaling boolean Whether the resulting image size might exceed the size of the original image
$async boolean Whether the thumbnail can be generated asynchronously
    public function __construct($width = null, $maximumWidth = null, $height = null, $maximumHeight = null, $allowCropping = false, $allowUpScaling = false, $async = false)
    {
        $this->width = $width ? (int) $width : null;
        $this->maximumWidth = $maximumWidth ? (int) $maximumWidth : null;
        $this->height = $height ? (int) $height : null;
        $this->maximumHeight = $maximumHeight ? (int) $maximumHeight : null;
        $this->allowCropping = $allowCropping ? (bool) $allowCropping : false;
        $this->allowUpScaling = $allowUpScaling ? (bool) $allowUpScaling : false;
        $this->async = $async ? (bool) $async : false;
    }