1 | <?php |
||
10 | class Spreadsheet |
||
11 | { |
||
12 | /** @var string */ |
||
13 | protected $id; |
||
14 | |||
15 | /** @var array */ |
||
16 | protected $locales = []; |
||
17 | |||
18 | /** @var array */ |
||
19 | protected $translations = []; |
||
20 | |||
21 | /** @var Api */ |
||
22 | protected $api; |
||
23 | |||
24 | 19 | public function __construct($id, $locales, $api = null) |
|
30 | |||
31 | 3 | public function setLocales($locales) |
|
37 | |||
38 | 18 | public function setTranslations($translations) |
|
44 | |||
45 | 1 | public function getTranslations() |
|
49 | |||
50 | 4 | public function getTranslationsCount() |
|
54 | |||
55 | 5 | public function getId() |
|
59 | |||
60 | 1 | public function getUrl() |
|
64 | |||
65 | 11 | public function getLocales() |
|
69 | |||
70 | 5 | public function getLocalesCount() |
|
74 | |||
75 | 8 | public function getHeader() |
|
82 | |||
83 | 3 | public function getCamelizedHeader() |
|
93 | |||
94 | 5 | public function getHeaderColumnsCount() |
|
100 | |||
101 | 4 | public function getHeaderRowsCount() |
|
105 | |||
106 | /** |
||
107 | * @param $sheetId |
||
108 | * @param $sheetTitle |
||
109 | * |
||
110 | * @return TranslationsSheetCoordinates |
||
111 | */ |
||
112 | 1 | public function translationsEmptySheetCoordinates($sheetId, $sheetTitle) |
|
120 | |||
121 | /** |
||
122 | * @param $sheetId |
||
123 | * @param $sheetTitle |
||
124 | * @return TranslationsSheetCoordinates |
||
125 | */ |
||
126 | 3 | public function translationsSheetCoordinates($sheetId, $sheetTitle) |
|
135 | |||
136 | 2 | public function sheetStyles() |
|
140 | |||
141 | 1 | public function deleteAllSheets() |
|
160 | |||
161 | /** |
||
162 | * Return api instance initialized with the spreadsheet ID. |
||
163 | * |
||
164 | * @return Api |
||
165 | */ |
||
166 | 3 | public function api() |
|
170 | } |
||
171 |