Unknown.php 935 B

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