summaryrefslogtreecommitdiff
path: root/tests/examplefiles/test.zep
blob: 4724d4c48da8c6f2871bea03cfe89db3e76142f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace Test;

use Test\Foo;

class Bar
{
    protected a;
    private b;
    public c {set, get};

    public function __construct(string str, boolean bool)
    {
        let this->c = str;
        this->setC(bool);
        let this->b = [];
    }

    public function sayHello(string name)
    {
        echo "Hello " . name;
    }

    protected function loops()
    {
        for a in b {
            echo a;
        }
        loop {
            return "boo!";
        }
    }

}