@@ 31-37 (lines=7) @@ | ||
28 | * @throws \BadMethodCallException |
|
29 | * @return bool |
|
30 | */ |
|
31 | public function noCandidates() |
|
32 | { |
|
33 | if (AddressValidation::REQUEST_OPTION_ADDRESS_CLASSIFICATION == $this->requestAction) { |
|
34 | throw new \BadMethodCallException(__METHOD__ . ' should not be called on Address Classification only requests.'); |
|
35 | } |
|
36 | return isset($this->response->NoCandidatesIndicator); |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * Tells whether or not the ValidAddressIndicator is present on the XML document. |
|
@@ 62-68 (lines=7) @@ | ||
59 | * @throws \BadMethodCallException |
|
60 | * @return bool |
|
61 | */ |
|
62 | public function isAmbiguous() |
|
63 | { |
|
64 | if (AddressValidation::REQUEST_OPTION_ADDRESS_CLASSIFICATION == $this->requestAction) { |
|
65 | throw new \BadMethodCallException(__METHOD__ . ' should not be called on Address Classification only requests.'); |
|
66 | } |
|
67 | return isset($this->response->AmbiguousAddressIndicator); |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * @throws \BadMethodCallException |