| 1 | <?php declare(strict_types = 1); |
||
| 9 | class TextObject |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The canonical type of the text object (e.g. solicit text, preview text, etc.). |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $type; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The IETF language tag denoting the language the text object is written in. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $language; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The text. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $text; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getType() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $type |
||
| 42 | */ |
||
| 43 | public function setType(string $type) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getLanguage() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param string $language |
||
| 58 | */ |
||
| 59 | public function setLanguage(string $language) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getText() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param string $text |
||
| 74 | */ |
||
| 75 | public function setText(string $text) |
||
| 79 | } |
||
| 80 |