Нет описания

UserFlagEntity.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. namespace MailPoet\Entities;
  3. if (!defined('ABSPATH')) exit;
  4. use MailPoet\Doctrine\EntityTraits\AutoincrementedIdTrait;
  5. use MailPoet\Doctrine\EntityTraits\CreatedAtTrait;
  6. use MailPoet\Doctrine\EntityTraits\UpdatedAtTrait;
  7. use MailPoetVendor\Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * @ORM\Entity()
  10. * @ORM\Table(name="user_flags")
  11. */
  12. class UserFlagEntity {
  13. use AutoincrementedIdTrait;
  14. use CreatedAtTrait;
  15. use UpdatedAtTrait;
  16. /**
  17. * @ORM\Column(type="integer")
  18. * @var int
  19. */
  20. private $userId;
  21. /**
  22. * @ORM\Column(type="string")
  23. * @var string
  24. */
  25. private $name;
  26. /**
  27. * @ORM\Column(type="string", nullable=true)
  28. * @var string|null
  29. */
  30. private $value;
  31. /** @return int */
  32. public function getUserId() {
  33. return $this->userId;
  34. }
  35. /** @param int $userId */
  36. public function setUserId($userId) {
  37. $this->userId = $userId;
  38. }
  39. /** @return string */
  40. public function getName() {
  41. return $this->name;
  42. }
  43. /** @param string $name */
  44. public function setName($name) {
  45. $this->name = $name;
  46. }
  47. /** @return string|null */
  48. public function getValue() {
  49. return $this->value;
  50. }
  51. /** @param string|null $value */
  52. public function setValue($value) {
  53. $this->value = $value;
  54. }
  55. }