Ejemplo n.º 1
0
 /**
  * Replaces tokens in table with row values.
  *
  * @param TableNode $argument
  *
  * @return TableNode
  */
 protected function replaceTableArgumentTokens(TableNode $argument)
 {
     $table = $argument->getTable();
     foreach ($table as $line => $row) {
         foreach (array_keys($row) as $col) {
             $table[$line][$col] = $this->replaceTextTokens($table[$line][$col]);
         }
     }
     return new TableNode($table);
 }