Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * CNIC |
| 5 | * Copyright © CentralNic Group PLC |
| 6 | */ |
| 7 | |
| 8 | namespace CNIC; |
| 9 | |
| 10 | /** |
| 11 | * Common API Object Interface |
| 12 | * |
| 13 | * @package CNIC |
| 14 | */ |
| 15 | |
| 16 | interface ApiObjectInterface |
| 17 | { |
| 18 | /** |
| 19 | * Constructor |
| 20 | * @param \CNIC\HEXONET\Client $cf registrar's client instance |
| 21 | */ |
| 22 | public function __construct($cf); |
| 23 | |
| 24 | /** |
| 25 | * Set the related Object ID |
| 26 | * @param string $objectid object id |
| 27 | * @return $this |
| 28 | */ |
| 29 | public function setId(string $objectid): ApiObjectInterface; |
| 30 | |
| 31 | /** |
| 32 | * Set the Object Class |
| 33 | * @param string $objectclass object class |
| 34 | * @return $this |
| 35 | */ |
| 36 | public function setClass(string $objectclass): ApiObjectInterface; |
| 37 | |
| 38 | /** |
| 39 | * Load Status Data |
| 40 | * @param bool $refresh trigger fresh data load, by default false |
| 41 | * @return $this |
| 42 | */ |
| 43 | public function loadStatus(bool $refresh = false): ApiObjectInterface; |
| 44 | |
| 45 | /** |
| 46 | * IDN Conversion |
| 47 | * @return array |
| 48 | */ |
| 49 | public function convert(): array; |
| 50 | |
| 51 | /** |
| 52 | * Bulk IDN Conversion |
| 53 | * @param array $domains List of Domains |
| 54 | * @return array |
| 55 | */ |
| 56 | public function convertbulk(array $domains): array; |
| 57 | } |