HEX
Server: Apache
System: Linux vps.rockyroadprinting.net 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: rockyroadprintin (1011)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/rockyroadprintin/www/wp-content/updraft/plugins-old/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 [];
	}
}