DateTime
3 years ago
Number
3 years ago
String
1 year ago
BooleanValueObject.php
7 years ago
Discount.php
7 years ago
DiscountFixedValue.php
7 years ago
DiscountPercentageValue.php
7 years ago
Duration.php
7 years ago
Gender.php
7 years ago
GeoTag.php
7 years ago
Json.php
7 years ago
Picture.php
7 years ago
PositiveDuration.php
7 years ago
Priority.php
3 years ago
Recurring.php
4 years ago
Json.php
37 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @copyright © TMS-Plugins. All rights reserved. |
| 4 | * @licence See LICENCE.md for license details. |
| 5 | */ |
| 6 | |
| 7 | namespace AmeliaBooking\Domain\ValueObjects; |
| 8 | |
| 9 | /** |
| 10 | * Class Json |
| 11 | * |
| 12 | * @package AmeliaBooking\Domain\ValueObjects |
| 13 | */ |
| 14 | final class Json |
| 15 | { |
| 16 | /** |
| 17 | * @var string |
| 18 | */ |
| 19 | private $value; |
| 20 | |
| 21 | /** |
| 22 | * @param string $value |
| 23 | */ |
| 24 | public function __construct($value) |
| 25 | { |
| 26 | $this->value = $value; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * @return string |
| 31 | */ |
| 32 | public function getValue() |
| 33 | { |
| 34 | return $this->value; |
| 35 | } |
| 36 | } |
| 37 |