diff --git "a/include/class-wb\\StatementGlobeCoordinate.php" "b/include/class-wb\\StatementGlobeCoordinate.php" index 62117c2..3ec1be6 100644 --- "a/include/class-wb\\StatementGlobeCoordinate.php" +++ "b/include/class-wb\\StatementGlobeCoordinate.php" @@ -1,49 +1,53 @@ <?php # Boz-MW - Another MediaWiki API handler in PHP -# Copyright (C) 2018 Valerio Bozzolan +# Copyright (C) 2018, 2019 Valerio Bozzolan # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Wikibase namespace wb; /** + * Statement suitable for a globe coordinate + * * A StatementItem is a Statement that contains a SnakItem. + * + * @see https://www.mediawiki.org/wiki/Wikibase/DataModel#Geographic_locations */ class StatementGlobeCoordinate extends Statement { /** - * @param $property Wikidata property as 'P123' - * @param $latitude float + * @param $property string Wikidata property as 'P123' + * @param $latitude float * @param $longitude float * @param $precision float - * @param $altitude float - * @param $globe string + * @param $altitude float + * @param $globe string */ - public function __construct( $property, $latitude, $longitude, $precision, $altitude = null, $globe = null ) { + public function __construct( $property, $latitude, $longitude, $precision = null, $altitude = null, $globe = null ) { parent::__construct( new SnakGlobeCoordinate( $property, $latitude, $longitude, $precision, $altitude, $globe ) ); } /** * @param $property Wikidata property as 'P123' * @param $latitude float * @param $longitude float * @param $precision float * @param $altitude float * @param $globe string */ public static function factory( $property, $latitude, $longitude, $precision, $altitude = null, $globe = null ) { return new self( $property, $latitude, $longitude, $precision, $altitude, $globe ); } }