instead of a get_class and the class name as string, you should use instanceof:

```php
switch(true) {
    case ($node instance ScenarioNode):
        // do something
}
```