public function serialize() { $serialized = parent::serialize(); $serialized .= '^' . implode('|', [$this->getNamespace(), $this->is_conditional, (string) $this->class_fqsen, (string) $this->method_fqsen, (string) $this->closure_fqsen]); return $serialized; }