for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* webtrees-lib: MyArtJaub library for webtrees
*
* @package MyArtJaub\Webtrees
* @subpackage GeoDispersion
* @author Jonathan Jaubart <[email protected]>
* @copyright Copyright (c) 2021, Jonathan Jaubart
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3
*/
declare(strict_types=1);
namespace MyArtJaub\Webtrees\Common\GeoDispersion\Config;
use MyArtJaub\Webtrees\Contracts\GeoDispersion\PlaceMapperConfigInterface;
use JsonSerializable;
* Null Place Mapper configuration.
* It does not contain any data, and can be used when no configuration is required.
class NullPlaceMapperConfig implements PlaceMapperConfigInterface
{
* {@inheritDoc}
* @see \MyArtJaub\Webtrees\Contracts\GeoDispersion\PlaceMapperConfigInterface::get()
public function get(string $key, $default = null)
return $default;
}
* @see \MyArtJaub\Webtrees\Contracts\GeoDispersion\PlaceMapperConfigInterface::has()
public function has(string $key): bool
return false;
* @see \MyArtJaub\Webtrees\Contracts\GeoDispersion\PlaceMapperConfigInterface::jsonDeserialize()
public function jsonDeserialize($config): self
return $this;
* @see JsonSerializable::jsonSerialize()
public function jsonSerialize()
return [];