| 1 | <?php |
||
| 10 | class Future extends CreateCommand |
||
| 11 | { |
||
| 12 | use PeriodTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Set domain name for future (option) |
||
| 16 | * |
||
| 17 | * @param string $domain Domain Name |
||
| 18 | * @throws Exception on incorrect domain name |
||
| 19 | */ |
||
| 20 | public function setFuture($domain) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Set future period |
||
| 31 | * |
||
| 32 | * Set period for which to create Future. Usually that will be 3y |
||
| 33 | * |
||
| 34 | * @param string $period Period ending with with y or m |
||
| 35 | */ |
||
| 36 | public function setPeriod($period) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Set future registrant |
||
| 43 | * |
||
| 44 | * @param string $registrant registrant ContactID |
||
| 45 | */ |
||
| 46 | public function setRegistrant($registrant) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Set future AuthInfo, generate if passed null |
||
| 53 | * |
||
| 54 | * @param string $pw AuthInfo code |
||
| 55 | * @return string AuthInfo code |
||
| 56 | */ |
||
| 57 | public function setAuthInfo($pw = null) |
||
| 67 | } |
||
| 68 | |||
| 69 |