summaryrefslogtreecommitdiff
path: root/poc/poc02-compiling-cake/src/php-weave/php_serializer.class.php
blob: c987d0e83a666a3aae5f2612534a3c35c9419921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
require_once '../vendor/nikic/php-parser/lib/bootstrap.php';

class PHPParser_PHPSerializer implements PHPParser_Serializer,PHPParser_Unserializer {
	public function serialize(array $nodes) {
		//Utilise les fonctions internes de PHP
		return serialize($nodes);
	}
	public function unserialize($string) {
		return unserialize($string);
	}
}