MrClay\Cli::openInput PHP 메소드

openInput() 공개 메소드

Get resource of open input stream. May be STDIN or a file pointer to the file specified by an option with 'STDIN'.
public openInput ( ) : resource
리턴 resource
    public function openInput()
    {
        if (null === $this->_stdin) {
            return STDIN;
        } else {
            $this->_stdin = fopen($this->_stdin, 'rb');
            return $this->_stdin;
        }
    }