forked from jgosier/ushahidi_swift
/
LanguageSpecificText.php
43 lines (40 loc) · 1.01 KB
/
LanguageSpecificText.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace Swiftriver\Core\ObjectModel;
/**
* Object to hold text in a given language
* @author mg[at]swiftly[dot]org
*/
class LanguageSpecificText
{
/**
* The ISO 639-1 two letter language code
* ref: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
* @var string
*/
public $languageCode;
/**
* The title in the language denoted by
* $languageCode
* @var string
*/
public $title;
/**
* A none-associative array of text in the
* language denoted by $languageCode
* @var string[]
*/
public $text;
/**
* Constructor for LanguageSpecificText objetc
* @param string $languageCode the ISO 639-1 language code
* @param string $title the title of the content
* @param string[] $text the none-assositave array of the content text
*/
public function __construct($languageCode, $title, $text)
{
$this->languageCode = $languageCode;
$this->title = $title;
$this->text = $text;
}
}
?>