public function __construct($name, $launchDate, $impactDate, $x, $y) { parent::__construct($x, $y); $this->name = $name; $this->launchDate = DateTime::createFromFormat('d M Y', $launchDate); $this->impactDate = DateTime::createFromFormat('d M Y', $impactDate); }
public function __construct($country, $city, $x, $y) { parent::__construct($x, $y); $this->country = $country; $this->city = $city; }