public function parseLiteral($ast) { if ($ast instanceof StringValueNode || $ast instanceof IntValueNode) { return $ast->value; } return null; }