-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDictionary.php
51 lines (44 loc) · 1.06 KB
/
Dictionary.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
44
45
46
47
48
49
50
51
<?php
/*
* This file is part of the libvoikko PHP bindings.
*
* SPDX-FileCopyrightText: 2021 Tuomas Siipola
*
* API and documentation are based on libvoikko and its Java bindings.
*
* SPDX-FileCopyrightText: 2006-2010 Harri Pitkänen
* SPDX-License-Identifier: MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later
*/
namespace Siiptuo\Voikko;
/**
* Represents a dictionary.
*
* @see Voikko::dictionaries()
*/
class Dictionary
{
/**
* Language tag of the dictionary.
*/
public string $language;
/**
* Script of the dictionary.
*/
public string $script;
/**
* Variant identifier of the dictionary.
*/
public string $variant;
/**
* Human readable description for the dictionary.
*/
public string $description;
/** @internal */
public function __construct(string $language, string $script, string $variant, string $description)
{
$this->language = $language;
$this->script = $script;
$this->variant = $variant;
$this->description = $description;
}
}