| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace MailPoet\Entities;
- if (!defined('ABSPATH')) exit;
- use MailPoet\Doctrine\EntityTraits\AutoincrementedIdTrait;
- use MailPoet\Doctrine\EntityTraits\CreatedAtTrait;
- use MailPoet\Doctrine\EntityTraits\UpdatedAtTrait;
- use MailPoetVendor\Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity()
- * @ORM\Table(name="user_flags")
- */
- class UserFlagEntity {
- use AutoincrementedIdTrait;
- use CreatedAtTrait;
- use UpdatedAtTrait;
- /**
- * @ORM\Column(type="integer")
- * @var int
- */
- private $userId;
- /**
- * @ORM\Column(type="string")
- * @var string
- */
- private $name;
- /**
- * @ORM\Column(type="string", nullable=true)
- * @var string|null
- */
- private $value;
- /** @return int */
- public function getUserId() {
- return $this->userId;
- }
- /** @param int $userId */
- public function setUserId($userId) {
- $this->userId = $userId;
- }
- /** @return string */
- public function getName() {
- return $this->name;
- }
- /** @param string $name */
- public function setName($name) {
- $this->name = $name;
- }
- /** @return string|null */
- public function getValue() {
- return $this->value;
- }
- /** @param string|null $value */
- public function setValue($value) {
- $this->value = $value;
- }
- }
|