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