Sindbad~EG File Manager

Current Path : /proc/142261/cwd/plugins/webp-converter-for-media/src/Exception/
Upload File :
Current File : //proc/142261/cwd/plugins/webp-converter-for-media/src/Exception/FilesizeOversizeException.php

<?php

namespace WebpConverter\Exception;

/**
 * {@inheritdoc}
 */
class FilesizeOversizeException extends ExceptionAbstract {

	const ERROR_MESSAGE = 'Image is larger than the maximum size of %1$sMB: "%2$s".';
	const ERROR_CODE    = 'max_filezile';

	/**
	 * {@inheritdoc}
	 */
	public function get_error_message( array $values ): string {
		$number = (int) $values[0];
		return sprintf(
			self::ERROR_MESSAGE,
			round( $number / 1024 / 1024 ),
			$values[1]
		);
	}

	/**
	 * {@inheritdoc}
	 */
	public function get_error_status(): string {
		return self::ERROR_CODE;
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists