ICalendar
6 months ago
VCard
6 months ago
Binary.php
6 months ago
Boolean.php
6 months ago
FlatText.php
6 months ago
FloatValue.php
6 months ago
IntegerValue.php
6 months ago
Text.php
6 months ago
Time.php
6 months ago
Unknown.php
6 months ago
Uri.php
6 months ago
UtcOffset.php
6 months ago
Unknown.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaVendor\Sabre\VObject\Property; |
| 4 | |
| 5 | /** |
| 6 | * Unknown property. |
| 7 | * |
| 8 | * This object represents any properties not recognized by the parser. |
| 9 | * This type of value has been introduced by the jCal, jCard specs. |
| 10 | * |
| 11 | * @copyright Copyright (C) fruux GmbH (https://fruux.com/) |
| 12 | * @author Evert Pot (http://evertpot.com/) |
| 13 | * @license http://sabre.io/license/ Modified BSD License |
| 14 | */ |
| 15 | class Unknown extends Text |
| 16 | { |
| 17 | /** |
| 18 | * Returns the value, in the format it should be encoded for json. |
| 19 | * |
| 20 | * This method must always return an array. |
| 21 | * |
| 22 | * @return array |
| 23 | */ |
| 24 | public function getJsonValue() |
| 25 | { |
| 26 | return [$this->getRawMimeDirValue()]; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Returns the type of value. |
| 31 | * |
| 32 | * This corresponds to the VALUE= parameter. Every property also has a |
| 33 | * 'default' valueType. |
| 34 | * |
| 35 | * @return string |
| 36 | */ |
| 37 | public function getValueType() |
| 38 | { |
| 39 | return 'UNKNOWN'; |
| 40 | } |
| 41 | } |
| 42 |