public static function from_array(array $data) { $item = new self(); $item->lat($data['lat']); $item->lng($data['lng']); return $item; }