| 1 | <?php |
||
| 17 | class SnapshotCommand extends AbstractController implements CommandInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * JSON view for displaying the statistics. |
||
| 21 | * |
||
| 22 | * @var StatsJsonView |
||
| 23 | * @since 1.0 |
||
| 24 | */ |
||
| 25 | private $view; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor. |
||
| 29 | * |
||
| 30 | * @param StatsJsonView $view JSON view for displaying the statistics. |
||
| 31 | * |
||
| 32 | * @since 1.0 |
||
| 33 | */ |
||
| 34 | public function __construct(StatsJsonView $view) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Execute the controller. |
||
| 41 | * |
||
| 42 | * @return boolean |
||
| 43 | * |
||
| 44 | * @since 1.0 |
||
| 45 | */ |
||
| 46 | public function execute() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Get the command's description |
||
| 67 | * |
||
| 68 | * @return string |
||
| 69 | * |
||
| 70 | * @since 1.0 |
||
| 71 | */ |
||
| 72 | public function getDescription() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Get the command's title |
||
| 79 | * |
||
| 80 | * @return string |
||
| 81 | * |
||
| 82 | * @since 1.0 |
||
| 83 | */ |
||
| 84 | public function getTitle() |
||
| 88 | } |
||
| 89 |