public function __sleep()
{
if (is_array($this->methods)) {
$this->cache->type('methods')->store($this->id, $this->methods);
$this->methods = null;
}
return array('cache', 'context', 'comment', 'endLine', 'modifiers', 'name', 'nodes', 'namespaceName', 'startLine', 'userDefined', 'id');
}