| 1 | <?php |
||
| 11 | class EmailVerifier extends HunterClient |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The email address you want to verify. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | public $email; |
||
| 19 | |||
| 20 | public function __construct(string $api_key = null) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Sets email to search |
||
| 29 | * |
||
| 30 | * @param string $email |
||
| 31 | * @return EmailVerifier |
||
| 32 | */ |
||
| 33 | public function email(string $email): self |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Shortcut to set email and make request |
||
| 42 | * |
||
| 43 | * @param string $email |
||
| 44 | * @return mixed |
||
| 45 | * @throws InvalidRequestException |
||
| 46 | * @throws AuthorizationException |
||
| 47 | * @throws UsageException |
||
| 48 | */ |
||
| 49 | public function verify(string $email) |
||
| 54 | |||
| 55 | public function make() |
||
| 68 | } |
||
| 69 |