| 1 | <?php |
||
| 9 | class QuadTreeMask implements MaskInterface |
||
| 10 | { |
||
| 11 | /** @var QuadTree */ |
||
| 12 | protected $tree; |
||
| 13 | |||
| 14 | 4 | function __construct($width, $height) |
|
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * @param \Imagine\Image\PointInterface $position |
||
| 22 | * @param Box $box |
||
| 23 | */ |
||
| 24 | 4 | public function add(PointInterface $position, Box $box) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @param Box $box |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | 4 | public function overlaps(Box $box) |
|
| 38 | } |
||
| 39 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.