SyntaxFix
Write A Post
Hire A Developer
Questions
Because "ReflectionClass" can be version depend just use the follow:
if(class_basename(get_class($object)) == 'Name') { ... do this ... }
or even clear
if(class_basename(ClassName::class) == 'ClassName') { ... do this ... }