freenet-router |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|---|---|---|
1 | 2 | simandl | <?php |
2 | |
||
3 | namespace Phem\Libraries\UI\Model; |
||
4 | |
||
5 | /** |
||
6 | * |
||
7 | * @author kubapet |
||
8 | */ |
||
9 | class Position |
||
10 | { |
||
11 | |
||
12 | private $x; |
||
13 | private $y; |
||
14 | private $z; |
||
15 | |
||
16 | function __construct($x = 0, $y = 0, $z = 0) |
||
17 | { |
||
18 | $this->x = $x; |
||
19 | $this->y = $y; |
||
20 | $this->z = $z; |
||
21 | } |
||
22 | |
||
23 | public function getX() |
||
24 | { |
||
25 | return $this->x; |
||
26 | } |
||
27 | |
||
28 | public function getY() |
||
29 | { |
||
30 | return $this->y; |
||
31 | } |
||
32 | |
||
33 | public function getZ() |
||
34 | { |
||
35 | return $this->z; |
||
36 | } |
||
37 | |
||
38 | } |
||
39 | |