PluginProbe
MailPoet – Newsletters, Email Marketing, and Automation / 5.33.1
MailPoet – Newsletters, Email Marketing, and Automation v5.33.1
5.37.0 5.36.1 5.36.0 5.35.1 5.35.0 5.34.3 5.34.2 5.34.1 5.34.0 5.33.1 5.33.0 5.32.0 5.31.0 5.30.0 5.29.0 5.28.1 5.28.0 5.27.0 5.26.0 5.26.1 5.25.0 5.24.0 4.43.0 4.43.1 4.44.0 All 541 releases
mailpoet / lib / Entities / FeatureFlagEntity.php
FeatureFlagEntity.php
66 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
2
3 namespace MailPoet\Entities;
4
5 if (!defined('ABSPATH')) exit;
6
7
8 use MailPoet\Doctrine\EntityTraits\AutoincrementedIdTrait;
9 use MailPoet\Doctrine\EntityTraits\CreatedAtTrait;
10 use MailPoet\Doctrine\EntityTraits\UpdatedAtTrait;
11 use MailPoetVendor\Doctrine\ORM\Mapping as ORM;
12
13 /**
14 * @ORM\Entity()
15 * @ORM\Table(name="feature_flags", uniqueConstraints={@ORM\UniqueConstraint(name="name",columns={"name"})})
16 */
17 class FeatureFlagEntity {
18 use AutoincrementedIdTrait;
19 use CreatedAtTrait;
20 use UpdatedAtTrait;
21
22 /**
23 * @ORM\Column(type="string", nullable=false, unique=true)
24 * @var string
25 */
26 private $name;
27
28 /**
29 * @ORM\Column(type="boolean", nullable=true)
30 * @var bool|null
31 */
32 private $value;
33
34 /**
35 * @param string $name
36 * @param bool|null $value
37 */
38 public function __construct(
39 $name,
40 $value = null
41 ) {
42 $this->name = $name;
43 $this->value = $value;
44 }
45
46 /** @return string */
47 public function getName() {
48 return $this->name;
49 }
50
51 /** @param string $name */
52 public function setName($name) {
53 $this->name = $name;
54 }
55
56 /** @return bool|null */
57 public function getValue() {
58 return $this->value;
59 }
60
61 /** @param bool|null $value */
62 public function setValue($value) {
63 $this->value = $value;
64 }
65 }
66