ServerNameserver.php 822 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace MGModule\DNSManager2\models\custom\server\nameserver;
  3. use MGModule\DNSManager2 as main;
  4. /**
  5. * Log class
  6. *
  7. * @Table(name=servernameserver)
  8. */
  9. class ServerNameserver extends main\mgLibs\models\orm{
  10. /**
  11. * ID field
  12. *
  13. * @Column(id)
  14. * @var int
  15. */
  16. public $id;
  17. /**
  18. *
  19. * @Column(int)
  20. * @var int
  21. */
  22. public $index;
  23. /**
  24. *
  25. * @Column(int=11, refrence=models\custom\server\Server::id)
  26. * @var int
  27. */
  28. public $serverid;
  29. /**
  30. *
  31. * @Column(varchar)
  32. * @var string
  33. */
  34. public $name;
  35. /**
  36. *
  37. * @Column(varchar)
  38. * @var string
  39. */
  40. public $ip;
  41. public function getServer() {
  42. return new main\models\custom\server\Server($this->serverid);
  43. }
  44. }