Key.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. namespace MGModule\DNSManager2\mgLibs\custom\dns\dnssec;
  3. class Key
  4. {
  5. /**
  6. *
  7. * @var integer
  8. */
  9. protected $id;
  10. /**
  11. *
  12. * @var integer
  13. */
  14. protected $started;
  15. /**
  16. *
  17. * @var integer
  18. */
  19. protected $expires;
  20. /**
  21. *
  22. * @var integer
  23. */
  24. protected $bits;
  25. /**
  26. *
  27. * @var integer
  28. */
  29. protected $lifetime;
  30. /**
  31. *
  32. * @var type
  33. */
  34. protected $type;
  35. /**
  36. *
  37. * @var \MGModule\DNSManager2\mgLibs\custom\dns\record\type\DNSKEY
  38. */
  39. protected $dnskey;
  40. function getId() {
  41. return $this->id;
  42. }
  43. function getStarted() {
  44. return $this->started;
  45. }
  46. function getExpires() {
  47. return $this->expires;
  48. }
  49. function getBits() {
  50. return $this->bits;
  51. }
  52. function getLifetime() {
  53. return $this->lifetime;
  54. }
  55. function getDnsKey() {
  56. return $this->dnskey;
  57. }
  58. function setId($id) {
  59. $this->id = $id;
  60. }
  61. function setStarted($started) {
  62. $this->started = $started;
  63. }
  64. function setExpires($expires) {
  65. $this->expires = $expires;
  66. }
  67. function setBits($bits) {
  68. $this->bits = $bits;
  69. }
  70. function setLifetime($lifetime) {
  71. $this->lifetime = $lifetime;
  72. }
  73. function setDnsKey(\MGModule\DNSManager2\mgLibs\custom\dns\record\type\DNSKEY $dnskey = null) {
  74. $this->dnskey = $dnskey;
  75. }
  76. function getType() {
  77. return $this->type;
  78. }
  79. }