The property id does not seem to exist in PHPAlgorithms\Dijkstra\Point.
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
Loading history...
24
}
25
26
$this->nodes[] = $point;
27
28
$this->checkDistance($distance);
29
30
$this->distance += $distance;
31
32
return $this;
33
}
34
35
public function checkDistance($distance)
36
{
37
if (!is_numeric($distance) && ($distance <= 0)) {
38
throw new PathException('Distance must be numeric value greater than 0');
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.