private function bailIfConstructArguments(string $source, int $width, int $height): void
    {
        if ($width <= 0) {
            throw new InvalidArgumentException('Width cannot be less or equal than zero.');
        }
        if ($height <= 0) {
            throw new InvalidArgumentException('Height cannot be less or equal than zero.');
        }
        if (!file_exists($source)) {
            throw new InvalidArgumentException('Source file does not exists.');
        }
    }
private function bailIfConstructArguments(string $source, int $width, int $height): void
    {
        if ($width <= 0) {
            throw new InvalidArgumentException('Width cannot be less or equal than zero.');
        }
        if ($height <= 0) {
            throw new InvalidArgumentException('Height cannot be less or equal than zero.');
        }
        if (!file_exists($source)) {
            throw new InvalidArgumentException('Source file does not exists.');
        }
    }
private function bailIfConstructArguments ( string $ source , int $ width , int $ height ) : void { if ( $ width <= 0 ) { throw new InvalidArgumentException ( 'Width cannot be less or equal than zero.' ) ; } if ( $ height <= 0 ) { throw new InvalidArgumentException ( 'Height cannot be less or equal than zero.' ) ; } if ( ! file_exists ( $ source ) ) { throw new InvalidArgumentException ( 'Source file does not exists.' ) ; } }
Validate Arguments for Constructor

@param string $source
@param int $width
@param int $height
@throws InvalidArgumentException
Validate Arguments for Constructor