PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / classes / CLI / AbstractCommand.php

AbstractCommand.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF trunk, at classes/CLI/AbstractCommand.php

31 lines 509 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 declare(strict_types=1);
3
4 namespace Imagify\CLI;
5
6 /**
7 * Abstrat class for CLI Command
8 */
9 abstract class AbstractCommand implements CommandInterface {
10 /**
11 * {@inheritdoc}
12 */
13 final public function get_name(): string {
14 return sprintf( 'imagify %s', $this->get_command_name() );
15 }
16
17 /**
18 * Get the "imagify" command name.
19 *
20 * @return string
21 */
22 abstract protected function get_command_name(): string;
23
24 /**
25 * {@inheritdoc}
26 */
27 public function get_synopsis(): array {
28 return [];
29 }
30 }
31