admin.class.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. *
  6. * @license see /license.txt
  7. * @author autogenerated
  8. */
  9. class Admin extends \Entity
  10. {
  11. /**
  12. * @return \Entity\Repository\AdminRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\AdminRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Admin
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var integer $id
  25. */
  26. protected $id;
  27. /**
  28. * @var integer $user_id
  29. */
  30. protected $user_id;
  31. /**
  32. * Get id
  33. *
  34. * @return integer
  35. */
  36. public function get_id()
  37. {
  38. return $this->id;
  39. }
  40. /**
  41. * Set user_id
  42. *
  43. * @param integer $value
  44. * @return Admin
  45. */
  46. public function set_user_id($value)
  47. {
  48. $this->user_id = $value;
  49. return $this;
  50. }
  51. /**
  52. * Get user_id
  53. *
  54. * @return integer
  55. */
  56. public function get_user_id()
  57. {
  58. return $this->user_id;
  59. }
  60. }