1 <?php
 2 /**
 3  * Part of the Joomla Framework Application Package
 4  *
 5  * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 6  * @license    GNU General Public License version 2 or later; see LICENSE
 7  */
 8 
 9 namespace Joomla\Application\Cli;
10 
11 /**
12  * Class CliInput
13  *
14  * @since  1.6.0
15  */
16 class CliInput
17 {
18     /**
19      * Get a value from standard input.
20      *
21      * @return  string  The input string from standard input.
22      *
23      * @codeCoverageIgnore
24      * @since   1.6.0
25      */
26     public function in()
27     {
28         return rtrim(fread(STDIN, 8192), "\n\r");
29     }
30 }
31