<?php

class Tree
{
	public $species;
	public $latitude;
	public $longitude;
	
	function __construct($spe, $lat, $lon)
	{
		$species = $spe;
		$latitude = $lat;
		$longitude = $lon;
	}
}

?>

<?php

class Tree
{
	public $species;
	public $latitude;
	public $longitude;
	
	function __construct($spe, $lat, $lon)
	{
		$this->species = $spe;
		$this->latitude = $lat;
		$this->longitude = $lon;
	}
}

?>

Update self reference in constructor
Update self reference in constructor