PluginProbe
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.13.0
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.13.0
5.13.0 5.12.1 5.12.0 5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 All 83 releases
matomo / app / vendor / prefixed / symfony / console / Event / ConsoleEvent.php
ConsoleEvent.php
61 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 namespace Matomo\Dependencies\Symfony\Component\Console\Event;
12
13 use Matomo\Dependencies\Symfony\Component\Console\Command\Command;
14 use Matomo\Dependencies\Symfony\Component\Console\Input\InputInterface;
15 use Matomo\Dependencies\Symfony\Component\Console\Output\OutputInterface;
16 use Matomo\Dependencies\Symfony\Contracts\EventDispatcher\Event;
17 /**
18 * Allows to inspect input and output of a command.
19 *
20 * @author Francesco Levorato <git@flevour.net>
21 */
22 class ConsoleEvent extends Event
23 {
24 protected $command;
25 private $input;
26 private $output;
27 public function __construct(?Command $command, InputInterface $input, OutputInterface $output)
28 {
29 $this->command = $command;
30 $this->input = $input;
31 $this->output = $output;
32 }
33 /**
34 * Gets the command that is executed.
35 *
36 * @return Command|null
37 */
38 public function getCommand()
39 {
40 return $this->command;
41 }
42 /**
43 * Gets the input instance.
44 *
45 * @return InputInterface
46 */
47 public function getInput()
48 {
49 return $this->input;
50 }
51 /**
52 * Gets the output instance.
53 *
54 * @return OutputInterface
55 */
56 public function getOutput()
57 {
58 return $this->output;
59 }
60 }
61