| Total Complexity | 5 | 
| Total Lines | 54 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 14 | class CaptureInteractiveFind extends AbstractAPI | ||
| 15 | { | ||
| 16 | |||
| 17 | /** | ||
| 18 | * @inheritDoc | ||
| 19 | */ | ||
| 20 | 2 | public function basePath(): string | |
| 23 | } | ||
| 24 | |||
| 25 | /** | ||
| 26 | * @inheritDoc | ||
| 27 | */ | ||
| 28 | 2 | protected function responseClass(): string | |
| 31 | } | ||
| 32 | |||
| 33 | /** | ||
| 34 | * The search text to find. Ideally a postcode or the start of the address. | ||
| 35 | * | ||
| 36 | * @param string $text | ||
| 37 | * | ||
| 38 | * @return $this | ||
| 39 | */ | ||
| 40 | 1 | public function setText(string $text): self | |
| 41 |     { | ||
| 42 | 1 |         return $this->setRequestField('Text', $text); | |
| 43 | } | ||
| 44 | |||
| 45 | /** | ||
| 46 | * Whether the API is being called from a middleware implementation | ||
| 47 | * (and therefore the calling IP address should not be used for biasing) | ||
| 48 | * | ||
| 49 | * @param bool $isMiddleware | ||
| 50 | * | ||
| 51 | * @return $this | ||
| 52 | */ | ||
| 53 | 1 | public function setIsMiddleware(bool $isMiddleware = true): self | |
| 56 | } | ||
| 57 | |||
| 58 | /** | ||
| 59 | * A container for the search. This should only be another Id previously returned from this service when the Type of the result was not 'Address'. | ||
| 60 | * | ||
| 61 | * @param string $text | ||
| 62 | * | ||
| 63 | * @return $this | ||
| 64 | */ | ||
| 65 | 1 | public function setContainer(string $text): self | |
| 68 | } | ||
| 69 | } | ||
| 70 |