1<?php
2
3namespace 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 */
15class 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