code: public function getText()
      {
          if (is_integer($this->focus)) {
              return $this->frames[$this->focus]->getText();
          }
          $raw = '';
          for ($i = 0; $i < count($this->frames); $i++) {
              $raw .= ' ' . $this->frames[$i]->getText();
          }
  
          return trim($raw);
      }
docs: Accessor for plain text of either all the pages or the frame in focus.
  
  @return string        Plain text content.