-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDomainRegistration.php
More file actions
66 lines (62 loc) · 1.56 KB
/
DomainRegistration.php
File metadata and controls
66 lines (62 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
namespace Dnsimple\Struct;
/**
* Represents the result of a domain registration call.
* @package Dnsimple\Struct
*/
class DomainRegistration
{
/**
* @var int The domain registration ID in DNSimple
*/
public $id;
/**
* @var int The associated domain ID
*/
public $domainId;
/**
* @var int The associated registrant (contact) ID
*/
public $registrantId;
/**
* @var int The number of years the domain was registered for
*/
public $period;
/**
* @var string The state of the renewal
*/
public $state;
/**
* @var bool True if the domain auto-renew was requested
*/
public $autoRenew;
/**
* @var bool True if the domain WHOIS privacy was requested
*/
public $whoisPrivacy;
/**
* @var bool True if trustee was requested
*/
public $trustee;
/**
* @var string When the domain renewal was created in DNSimple
*/
public $createdAt;
/**
* @var string When the domain renewal was last updated in DNSimple
*/
public $updatedAt;
public function __construct($data)
{
$this->id = $data->id;
$this->domainId = $data->domain_id;
$this->registrantId = $data->registrant_id;
$this->period = $data->period;
$this->state = $data->state;
$this->autoRenew = $data->auto_renew;
$this->whoisPrivacy = $data->whois_privacy;
$this->trustee = $data->trustee;
$this->createdAt = $data->created_at;
$this->updatedAt = $data->updated_at;
}
}