<?php class A { use GetPrivates; private $foo =2; } trait GetPrivates { public function __call($name, $arg) { return $this->foo; } } var_dump((new A)->get());
You have javascript disabled. You will not be able to edit any code.