1 | <?php |
||
17 | * |
||
18 | * @method \Joomla\StatsServer\CliApplication getApplication() Get the application object. |
||
19 | * @property-read \Joomla\StatsServer\CliApplication $app Application object |
||
20 | */ |
||
21 | class SnapshotCommand extends AbstractController implements CommandInterface |
||
22 | { |
||
23 | /** |
||
24 | * JSON view for displaying the statistics. |
||
25 | * |
||
26 | * @var StatsJsonView |
||
27 | */ |
||
28 | private $view; |
||
29 | |||
30 | /** |
||
31 | * Constructor. |
||
32 | * |
||
33 | * @param StatsJsonView $view JSON view for displaying the statistics. |
||
34 | */ |
||
35 | public function __construct(StatsJsonView $view) |
||
39 | |||
40 | /** |
||
41 | * Execute the controller. |
||
42 | * |
||
43 | * @return boolean |
||
44 | */ |
||
45 | public function execute() |
||
63 | |||
64 | /** |
||
65 | * Get the command's description |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getDescription() : string |
||
73 | |||
74 | /** |
||
75 | * Get the command's title |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getTitle() : string |
||
83 | } |
||
84 |