/** * Compiles values into php script. * * @param array $values * @return string */ public static function compile(array $values) { $scope = new self($values); $script = '[' . PHP_EOL; foreach ($scope->values as $id => $value) { if (interface_exists($id)) { continue; } $script .= "'{$id}' => " . $scope->parseToken($value, $id)->getBinding() . ',' . PHP_EOL; } return $script . ']'; }