Sha256: 9914d9e8a6b8a1f0ee8c7b32c0dc919f0159bd2cff4951ff4d2fe55ca43d9027

Contents?: true

Size: 1.44 KB

Versions: 42

Compression:

Stored size: 1.44 KB

Contents

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Event;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Allows to inspect input and output of a command.
 *
 * @author Francesco Levorato <git@flevour.net>
 */
class ConsoleEvent extends Event
{
    protected $command;

    private $input;
    private $output;

    public function __construct(Command $command = null, InputInterface $input, OutputInterface $output)
    {
        $this->command = $command;
        $this->input = $input;
        $this->output = $output;
    }

    /**
     * Gets the command that is executed.
     *
     * @return Command|null A Command instance
     */
    public function getCommand()
    {
        return $this->command;
    }

    /**
     * Gets the input instance.
     *
     * @return InputInterface An InputInterface instance
     */
    public function getInput()
    {
        return $this->input;
    }

    /**
     * Gets the output instance.
     *
     * @return OutputInterface An OutputInterface instance
     */
    public function getOutput()
    {
        return $this->output;
    }
}

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
dependabot-composer-0.119.0.beta1 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.113.19 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.112.1 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.111.57 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.111.56 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.111.52 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.111.50 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.111.25 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.111.17 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.111.15 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.110.13 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.108.11 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.108.8 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.107.47 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.107.39 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.107.36 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.107.28 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.107.14 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.106.12 helpers/vendor/symfony/console/Event/ConsoleEvent.php
dependabot-composer-0.106.11 helpers/vendor/symfony/console/Event/ConsoleEvent.php