node 用于 “格式化存储” 每个证书节点数据。
    数据包含 要检测的 域名的标题、域名url、域名过期(时间戳)、域名过期(格式化日期)

    1. <?php
    2. namespace console\forms;
    3. use yii\base\BaseObject;
    4. /**
    5. * https 检测的节点
    6. *
    7. * @property string $label 文本名称
    8. * @property string $domain 当前域名
    9. * @property string $expire 过期时间
    10. * @property string $expireStamp 过期时间 时间戳
    11. *
    12. * @author vogin
    13. */
    14. class HttpsCheckNode extends BaseObject
    15. {
    16. // 文本名称
    17. private $_label;
    18. // 当前域名
    19. private $_domain;
    20. // 过期时间
    21. private $_expire;
    22. // 过期时间 时间戳
    23. private $_expireStamp;
    24. /**
    25. *
    26. * @return mixed
    27. */
    28. public function getExpireStamp ()
    29. {
    30. return $this->_expireStamp;
    31. }
    32. /**
    33. *
    34. * @param mixed $_expireStamp
    35. */
    36. public function setExpireStamp ($_expireStamp)
    37. {
    38. $this->_expireStamp = $_expireStamp;
    39. }
    40. /**
    41. *
    42. * @return mixed
    43. */
    44. public function getLabel ()
    45. {
    46. return $this->_label;
    47. }
    48. /**
    49. *
    50. * @return mixed
    51. */
    52. public function getDomain ()
    53. {
    54. return $this->_domain;
    55. }
    56. /**
    57. *
    58. * @return mixed
    59. */
    60. public function getExpire ()
    61. {
    62. return $this->_expire;
    63. }
    64. /**
    65. *
    66. * @param mixed $_label
    67. */
    68. public function setLabel ($_label)
    69. {
    70. $this->_label = $_label;
    71. }
    72. /**
    73. *
    74. * @param mixed $_domain
    75. */
    76. public function setDomain ($_domain)
    77. {
    78. $this->_domain = $_domain;
    79. }
    80. /**
    81. *
    82. * @param mixed $_expire
    83. */
    84. public function setExpire ($_expire)
    85. {
    86. $this->_expire = $_expire;
    87. }
    88. }