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