It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
15
{
16
4
$this->tree = new QuadTree(new Box(0, 0, $width, $height));
17
4
}
18
19
20
/**
21
* @param \Imagine\Image\PointInterface $position
22
* @param Box $box
23
*/
24
4
public function add(PointInterface $position, Box $box)
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.