Can you explain the difference between get_class($instance) and ClassName::class ?
get_class($instance)
ClassName::class
There is no difference, this is just two coding styles.