1 | <?php |
||
21 | class BatchResult |
||
22 | { |
||
23 | /** |
||
24 | * The name of the provider. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $providerName; |
||
29 | |||
30 | /** |
||
31 | * The query. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $query; |
||
36 | |||
37 | /** |
||
38 | * The exception message. |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $exception; |
||
43 | |||
44 | |||
45 | /** |
||
46 | * Construct a Geocoded object with the provider name, its query and exception if any. |
||
47 | * |
||
48 | * @param string $providerName The name of the provider. |
||
49 | * @param string $query The query. |
||
50 | * @param string $exception The exception message if any. |
||
51 | */ |
||
52 | 16 | public function __construct($providerName, $query, $exception = '') |
|
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | 8 | public function createFromAddress(Location $address) |
|
69 | |||
70 | /** |
||
71 | * {@inheritDoc} |
||
72 | */ |
||
73 | 16 | public function newInstance() |
|
83 | } |
||
84 |