/**
  * Parse given files for phrase
  *
  * @param string $file
  * @return void
  */
 public function parse($file)
 {
     $this->_phrases = [];
     $this->_file = $file;
     $this->_tokenizer->parse($file);
     while (!$this->_tokenizer->isEndOfLoop()) {
         $this->_extractPhrases();
     }
 }
Esempio n. 2
0
 protected function parseFile()
 {
     $file = __DIR__ . '/_files/objectsCode.php.txt';
     $this->tokenizer->parse($file);
 }