| 1 | <?php |
||
| 5 | class Node |
||
| 6 | { |
||
| 7 | private $content; |
||
| 8 | private $top; |
||
| 9 | private $right; |
||
| 10 | private $left; |
||
| 11 | private $bottom; |
||
| 12 | |||
| 13 | public function getContent() |
||
| 17 | |||
| 18 | public function setContent($content) |
||
| 24 | |||
| 25 | public function getTop() |
||
| 29 | |||
| 30 | public function setTop(Node $top = null) |
||
| 40 | |||
| 41 | public function getBottom() |
||
| 45 | |||
| 46 | public function setBottom(Node $bottom = null) |
||
| 56 | |||
| 57 | public function getLeft() |
||
| 61 | |||
| 62 | public function setLeft(Node $left = null) |
||
| 72 | |||
| 73 | public function getRight() |
||
| 77 | |||
| 78 | public function setRight(Node $right = null) |
||
| 88 | } |
||
| 89 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.