/** * @return int * The number of types in this union type */ public function typeCount() : int { return $this->type_set->count(); }