1<?php
2
3namespace Sabre\VObject\Property\VCard;
4
5use
6    Sabre\VObject\Property;
7
8/**
9 * LanguageTag property.
10 *
11 * This object represents LANGUAGE-TAG values as used in vCards.
12 *
13 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
14 * @author Evert Pot (http://evertpot.com/)
15 * @license http://sabre.io/license/ Modified BSD License
16 */
17class LanguageTag extends Property
18{
19    /**
20     * Sets a raw value coming from a mimedir (iCalendar/vCard) file.
21     *
22     * This has been 'unfolded', so only 1 line will be passed. Unescaping is
23     * not yet done, but parameters are not included.
24     *
25     * @param string $val
26     */
27    public function setRawMimeDirValue($val)
28    {
29        $this->setValue($val);
30    }
31
32    /**
33     * Returns a raw mime-dir representation of the value.
34     *
35     * @return string
36     */
37    public function getRawMimeDirValue()
38    {
39        return $this->getValue();
40    }
41
42    /**
43     * Returns the type of value.
44     *
45     * This corresponds to the VALUE= parameter. Every property also has a
46     * 'default' valueType.
47     *
48     * @return string
49     */
50    public function getValueType()
51    {
52        return 'LANGUAGE-TAG';
53    }
54}
55