| 1 | <?php |
||
| 5 | class Config implements ConfigInterface |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | protected $name; |
||
| 9 | |||
| 10 | /** @var string */ |
||
| 11 | protected $type; |
||
| 12 | |||
| 13 | /** @var \DateTime|null */ |
||
| 14 | protected $expiresAt; |
||
| 15 | |||
| 16 | /** @var bool|int|string|array|object */ |
||
| 17 | protected $value; |
||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $name |
||
| 24 | * @return $this|ConfigInterface |
||
| 25 | */ |
||
| 26 | public function setName($name) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getName() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $type |
||
| 42 | * @return $this|ConfigInterface |
||
| 43 | */ |
||
| 44 | public function setType($type) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getType() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param \DateTime|null $expiresAt |
||
| 60 | * @return $this|Config |
||
| 61 | */ |
||
| 62 | public function setExpiresAt(\DateTime $expiresAt = null) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return \DateTime|null |
||
| 70 | */ |
||
| 71 | public function getExpiresAt() |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @param array|bool|int|object|string $value |
||
| 78 | * @return $this|ConfigInterface |
||
| 79 | */ |
||
| 80 | public function setValue($value) |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @return array|bool|int|object|string |
||
| 88 | */ |
||
| 89 | public function getValue() |
||
| 93 | |||
| 94 | } |