<?php class A { private $b; public function __construct(B $b) { $this->b = $b; var_dump($b::OMG); } } class B { const OMG = 10; } $b = new B(); $a = new A($b);
You have javascript disabled. You will not be able to edit any code.