-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathQuery.php
More file actions
38 lines (27 loc) · 814 Bytes
/
Query.php
File metadata and controls
38 lines (27 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
declare(strict_types=1);
/*
* This file is part of the Geocoder package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Geocoder\Query;
/**
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/
interface Query
{
public function withLocale(string $locale): Query;
public function withLimit(int $limit): Query;
public function withData(string $name, mixed $value): Query;
public function getLocale(): ?string;
public function getLimit(): int;
public function getData(string $name, mixed $default = null): mixed;
/**
* @return array<string, mixed>
*/
public function getAllData(): array;
public function __toString(): string;
}