public isNativeType ( ) : boolean | ||
return | boolean | True if this UnionType is exclusively native types |
public function isNativeType() : bool
{
if ($this->isEmpty()) {
return false;
}
return false === $this->type_set->find(function (Type $type) : bool {
return !$type->isNativeType();
});
}