ReflectionClass::isAnonymous

public function isAnonymous(): bool;