Lines Matching refs:class
2 class name as scalar from ::class keyword
7 class One {
9 const A = self::class;
10 const B = Two::class;
12 class Two extends One {
14 var_dump(self::class); // self compile time lookup
15 var_dump(static::class); // runtime lookup
16 var_dump(parent::class); // runtime lookup
17 var_dump(Baz::class); // default compile time lookup
20 class Three extends Two {
23 $one = self::class,
24 $two = Baz::class,
39 var_dump(One::class); // resolve from use
40 var_dump(Boo::class); // resolve in global namespace
43 $class = One::class; // assign class as scalar to var
44 $x = new $class; // create new class from original scalar assignment