Files
piratepoet/lib/Entities/FeatureFlagEntity.php
Pavel Dohnal ff9bc0b3b9 Use doctrine in integration tests
[MAILPOET-2219]
2019-08-28 12:48:22 -04:00

59 lines
1.1 KiB
PHP

<?php
namespace MailPoet\Entities;
use MailPoet\Doctrine\EntityTraits\AutoincrementedIdTrait;
use MailPoet\Doctrine\EntityTraits\CreatedAtTrait;
use MailPoet\Doctrine\EntityTraits\UpdatedAtTrait;
/**
* @Entity()
* @Table(name="feature_flags")
*/
class FeatureFlagEntity {
use AutoincrementedIdTrait;
use CreatedAtTrait;
use UpdatedAtTrait;
/**
* @Column(type="string", nullable=false, unique=true)
* @var string
*/
private $name;
/**
* @Column(type="boolean", nullable=true)
* @var bool|null
*/
private $value;
/**
* @param string $name
* @param bool|null $value
*/
public function __construct($name, $value = null) {
$this->name = $name;
$this->value = $value;
}
/** @return string */
public function getName() {
return $this->name;
}
/** @param string $name */
public function setName($name) {
$this->name = $name;
}
/** @return bool|null */
public function getValue() {
return $this->value;
}
/** @param bool|null $value */
public function setValue($value) {
$this->value = $value;
}
}