1namespace Test; 2 3use Test\Foo; 4 5class Bar 6{ 7 protected a; 8 private b; 9 public c {set, get}; 10 11 public function __construct(string str, boolean bool) 12 { 13 let this->c = str; 14 this->setC(bool); 15 let this->b = []; 16 } 17 18 public function sayHello(string name) 19 { 20 echo "Hello " . name; 21 } 22 23 protected function loops() 24 { 25 for a in b { 26 echo a; 27 } 28 loop { 29 return "boo!"; 30 } 31 } 32 33}