1: <?php
2:
3: /**
4: * This class models a Domain
5: *
6: * @package Transip
7: * @class Domain
8: * @author TransIP (support@transip.nl)
9: */
10: class Transip_Domain
11: {
12: /**
13: * The name, including the tld of this domain.
14: * - Must meet the requirements for a domain name described in: <a href="https://tools.ietf.org/html/rfc952" target="_blanc">RFC 952</a>
15: *
16: * @var string
17: */
18: public $name = '';
19:
20: /**
21: * The list of nameservers (with optional gluerecords) for this domain
22: *
23: * @var Transip_Nameserver[]
24: */
25: public $nameservers = array();
26:
27: /**
28: * The list of WhoisContacts for this domain
29: *
30: * @var Transip_WhoisContact[]
31: */
32: public $contacts = array();
33:
34: /**
35: * The list of DnsEntries for this domain
36: *
37: * @var Transip_DnsEntry[]
38: */
39: public $dnsEntries = array();
40:
41: /**
42: * The branding for this domain, some Tlds support additional
43: * whois- and transfer-branding which will be stored in this variable.
44: * Even if a Tld does not support branding, it will
45: * always be stored in this variable for consistency.
46: *
47: * @var Transip_DomainBranding
48: */
49: public $branding;
50:
51: /**
52: * The authcode for this domain as generated by the registry. Read-only.
53: *
54: * @var string
55: * @readonly
56: */
57: public $authCode = '';
58:
59: /**
60: * If this domain supports locking, this flag is true when the domain is locked
61: * at the registry, false if not. Read-only.
62: *
63: * Use Transip_DomainService::setLock() to change the lock status of a domain.
64: *
65: * @var boolean
66: * @readonly
67: */
68: public $isLocked = false;
69:
70: /**
71: * Registration date of the domain, in YYYY-mm-dd format. Read-only.
72: *
73: * @var string
74: * @readonly
75: */
76: public $registrationDate = '';
77:
78: /**
79: * Next renewal date of the domain, in YYYY-mm-dd format. Read-only.
80: *
81: * @var string
82: * @readonly
83: */
84: public $renewalDate = '';
85:
86: /**
87: * Constructs a new Domain
88: *
89: * @param string $name the domain name of the domain, including tld
90: * @param Nameserver[] $nameservers the list of nameservers (with optional gluerecords) for this domain
91: * @param WhoisContact[] $contacts the list of WhoisContacts for this domain
92: * @param DnsEntry[] $dnsEntries the list of DnsEntries for this domain
93: * @param DomainBranding $branding the branding for this domain, see the branding property for more info
94: */
95: public function __construct($name, $nameservers = array(), $contacts = array(), $dnsEntries = array(), $branding = null)
96: {
97: $this->name = $name;
98: $this->nameservers = $nameservers;
99: $this->contacts = $contacts;
100: $this->dnsEntries = $dnsEntries;
101: $this->branding = $branding;
102: }
103: }
104:
105: ?>
106: