HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/zuiderbos.komma.pro/vendor/gregwar/image/Gregwar/Image/Source/Create.php
<?php

namespace Gregwar\Image\Source;

/**
 * Creates a new image from scratch.
 */
class Create extends Source
{
    protected $width;
    protected $height;

    public function __construct($width, $height)
    {
        $this->width = $width;
        $this->height = $height;
    }

    public function getWidth()
    {
        return $this->width;
    }

    public function getHeight()
    {
        return $this->height;
    }

    public function getInfos()
    {
        return array($this->width, $this->height);
    }

    public function correct()
    {
        return $this->width > 0 && $this->height > 0;
    }
}