Neos\Media\Imagine\Box::__construct PHP Method

__construct() public method

Constructs the Size with given width and height
public __construct ( integer $width, integer $height )
$width integer
$height integer
    public function __construct($width, $height)
    {
        if ($height < 1 || $width < 1) {
            throw new \InvalidArgumentException(sprintf('Length of either side cannot be 0 or negative, current size is %sx%s', $width, $height), 1465382619);
        }
        $this->width = (int) $width;
        $this->height = (int) $height;
    }