district09/php_package_dg-geopunt-geolocation

View on GitHub
src/Request/LocationRequest.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace DigipolisGent\Geopunt\Geolocation\Request;

use DigipolisGent\Geopunt\Geolocation\Filter\Filters;
use DigipolisGent\Geopunt\Geolocation\Uri\LocationUri;

/**
 * Request to get location(s) based on given filters.
 */
final class LocationRequest extends AbstractJsonRequest
{
    /**
     * Create a new location request.
     *
     * @param \DigipolisGent\Geopunt\Geolocation\Filter\Filters $filters
     */
    public function __construct(Filters $filters)
    {
        parent::__construct(
            new LocationUri($filters)
        );
    }
}