private function getStdin()
    {
        if (!isset($this->stdin)) {
            $this->stdin = \fopen('php://stdin', 'r');
        }

        if (\feof($this->stdin)) {
            throw new BreakException('Ctrl+D');
        }

        return $this->stdin;
    }
private function getStdin()
    {
        if (!isset($this->stdin)) {
            $this->stdin = \fopen('php://stdin', 'r');
        }

        if (\feof($this->stdin)) {
            throw new BreakException('Ctrl+D');
        }

        return $this->stdin;
    }
private function getStdin ( ) { if ( ! isset ( $ this -> stdin ) ) { $ this -> stdin = \ fopen ( 'php://stdin' , 'r' ) ; } if ( \ feof ( $ this -> stdin ) ) { throw new BreakException ( 'Ctrl+D' ) ; } return $ this -> stdin ; }
Get a STDIN file handle.

@throws BreakException if user hits Ctrl+D

@return resource
Get a STDIN file handle .