Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Console\Input; Chris@0: Chris@0: /** Chris@0: * StreamableInputInterface is the interface implemented by all input classes Chris@0: * that have an input stream. Chris@0: * Chris@0: * @author Robin Chalas Chris@0: */ Chris@0: interface StreamableInputInterface extends InputInterface Chris@0: { Chris@0: /** Chris@0: * Sets the input stream to read from when interacting with the user. Chris@0: * Chris@0: * This is mainly useful for testing purpose. Chris@0: * Chris@0: * @param resource $stream The input stream Chris@0: */ Chris@0: public function setStream($stream); Chris@0: Chris@0: /** Chris@0: * Returns the input stream. Chris@0: * Chris@0: * @return resource|null Chris@0: */ Chris@0: public function getStream(); Chris@0: }