4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Console\Input;
15 * StreamableInputInterface is the interface implemented by all input classes
16 * that have an input stream.
18 * @author Robin Chalas <robin.chalas@gmail.com>
20 interface StreamableInputInterface extends InputInterface
23 * Sets the input stream to read from when interacting with the user.
25 * This is mainly useful for testing purpose.
27 * @param resource $stream The input stream
29 public function setStream($stream);
32 * Returns the input stream.
34 * @return resource|null
36 public function getStream();