HEX
Server: Apache
System: Linux beta.alfanet.ee 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: busines1 (1252)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home-ssd1/busines1/www/wp-content/plugins/imagify/classes/CLI/AbstractCommand.php
<?php
declare(strict_types=1);

namespace Imagify\CLI;

/**
 * Abstrat class for CLI Command
 */
abstract class AbstractCommand implements CommandInterface {
	/**
	 * {@inheritdoc}
	 */
	final public function get_name(): string {
		return sprintf( 'imagify %s', $this->get_command_name() );
	}

	/**
	 * Get the "imagify" command name.
	 *
	 * @return string
	 */
	abstract protected function get_command_name(): string;

	/**
	 * {@inheritdoc}
	 */
	public function get_synopsis(): array {
		return [];
	}
}