@@ -42,11 +42,11 @@ class Statementor extends \Ease\Sand
4242 if ($accountNumber ) {
4343 $this -> setAccountNumber ($accountNumber );
4444 }
45-
46- if ($scope){
45+
46+ if ($scope) {
4747 $this -> setScope ($scope );
4848 }
49-
49+
5050 }
5151
5252 /**
@@ -71,7 +71,7 @@ class Statementor extends \Ease\Sand
7171 *
7272 * @return array
7373 */
74- public function getStatements($currencyCode = 'CZK', $statementLine = 'MAIN')
74+ public function getStatements($currencyCode = 'CZK', $statementLine = 'MAIN'): array
7575 {
7676 $apiInstance = new PremiumAPI\GetStatementListApi();
7777 $page = 0;
@@ -213,13 +213,13 @@ class Statementor extends \Ease\Sand
213213 * Save Statement PDF files
214214 *
215215 * @param string $saveTo
216- * @param array $statements
216+ * @param array< mixed > $statements - produced by getStatements() function
217217 * @param string $format pdf|xml
218218 * @param string $currencyCode
219219 *
220- * @return string
220+ * @return array
221221 */
222- public function download(string $saveTo, array $statements, $format = 'pdf', $currencyCode = 'CZK')
222+ public function download(string $saveTo, array $statements, string $format = 'pdf', string $currencyCode = 'CZK'): array
223223 {
224224 $saved = [];
225225 $apiInstance = new PremiumAPI\DownloadStatementApi();
@@ -252,7 +252,7 @@ class Statementor extends \Ease\Sand
252252 *
253253 * @return \DateTime
254254 */
255- public function getSince()
255+ public function getSince(): \DateTime
256256 {
257257 return $this -> since ;
258258 }
@@ -262,7 +262,7 @@ class Statementor extends \Ease\Sand
262262 *
263263 * @return \DateTime
264264 */
265- public function getUntil()
265+ public function getUntil(): \DateTime
266266 {
267267 return $this -> until ;
268268 }
0 commit comments