protected function compileShallowJson(array $array, $vars)
 {
     $compiled = [];
     foreach ($array as $i => $hint) {
         $compiled[$i] = $this->compiler->compileString($hint, $vars);
     }
     return $compiled;
 }
Ejemplo n.º 2
0
 /**
  * @param NULL|int $seed
  * @return ScalarExercise
  */
 public function getExercise($seed = NULL)
 {
     $this->compiler->reseed($seed);
     return $this->compiler->compile($this->blueprint);
 }