protected function getScanner(): Scanner
    {
        if (null === $this->scanner) {
            $this->scanner = Scanner::factory();
        }
        return $this->scanner;
    }
protected function getScanner(): Scanner
    {
        if (null === $this->scanner) {
            $this->scanner = Scanner::factory();
        }
        return $this->scanner;
    }
protected function getScanner ( ) : Scanner { if ( null === $ this -> scanner ) { $ this -> scanner = Scanner :: factory ( ) ; } return $ this -> scanner ; }
Returns text scanner.

@return Scanner
Returns text scanner .