<?php class Foo { const LOL = 'hahaha'; } class Bar { function getFoo() { return Foo::class; } } $bar = new Bar; var_dump($bar->getFoo()::LOL);
You have javascript disabled. You will not be able to edit any code.