<?php class A { use B; } trait B { protected $foo = false; public function getFoo() { return $this->foo; } } $a = new A(); var_dump($a->getFoo());
You have javascript disabled. You will not be able to edit any code.