PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 2.3.1
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v2.3.1
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 / CommandInterface.php

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

36 lines 622 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 interface CommandInterface {
7 /**
8 * Get the command name.
9 *
10 * @return string
11 */
12 public function get_name(): string;
13
14 /**
15 * Executes the command.
16 *
17 * @param array $arguments Positional argument.
18 * @param array $options Optional arguments.
19 */
20 public function __invoke( $arguments, $options );
21
22 /**
23 * Get the positional and associative arguments a command accepts.
24 *
25 * @return array
26 */
27 public function get_synopsis(): array;
28
29 /**
30 * Get the command description.
31 *
32 * @return string
33 */
34 public function get_description(): string;
35 }
36