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