Skip to content

Commit 7bccdbf

Browse files
committed
Update for AbraFlexi 2026.2.2
1 parent a3cd4cd commit 7bccdbf

193 files changed

Lines changed: 267 additions & 267 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/AbraFlexi/Actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Actions
2424
/**
2525
* Source AbraFlexi server version.
2626
*/
27-
public static string $version = '2026.2.0';
27+
public static string $version = '2026.2.2';
2828

2929
/**
3030
* Evidence adresar (Adresy firem) Actions.

src/AbraFlexi/Company.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Company extends RW
3333
/**
3434
* AbraFlexi Company Class.
3535
*
36-
* @param array<string, mixed>|string|null $init Company dbNazev or initial data
36+
* @param null|array<string, mixed>|string $init Company dbNazev or initial data
3737
* @param array<string, mixed> $options Connection settings override
3838
*/
3939
public function __construct($init = null, $options = [])

src/AbraFlexi/EvidenceList.php

Lines changed: 31 additions & 31 deletions
Large diffs are not rendered by default.

src/AbraFlexi/Exception.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class Exception extends \Ease\Exception
3838
/**
3939
* AbraFlexi response as Exception.
4040
*
41-
* @param string $message Exception message
42-
* @param RO $caller AbraFlexi Object
43-
* @param \Ease\Exception|null $previous Previous exception
41+
* @param string $message Exception message
42+
* @param RO $caller AbraFlexi Object
43+
* @param null|\Ease\Exception $previous Previous exception
4444
*/
4545
public function __construct($message, RO $caller, ?\Ease\Exception $previous = null)
4646
{

src/AbraFlexi/FakturaVydana.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace AbraFlexi;
2323

2424
/**
25-
* Issued Invoice
25+
* Issued Invoice.
2626
*
2727
* @see https://demo.flexibee.eu/c/demo/faktura-vydana/properties Evidence properties
2828
*
@@ -49,7 +49,7 @@ class FakturaVydana extends RW implements \AbraFlexi\Document
4949
*
5050
* @see https://demo.flexibee.eu/devdoc/parovani-plateb Payment matching
5151
*
52-
* @param Banka|PokladniPohyb|InterniDoklad $doklad Which document to match with?
52+
* @param Banka|InterniDoklad|PokladniPohyb $doklad Which document to match with?
5353
* @param string $zbytek ne|zauctovat|ignorovat|castecnaUhrada|castecnaUhradaNeboZauctovat|castecnaUhradaNeboIgnorovat
5454
* @param string $overpayTo Code of document type for overpayment - https://podpora.flexibee.eu/cs/articles/6091847-vytvoreni-preplatku-pomoci-rest-api
5555
*
@@ -81,12 +81,12 @@ public function sparujPlatbu($doklad, $zbytek = 'ignorovat', string $overpayTo =
8181
*
8282
* @param float $value Amount to pay
8383
* @param array<string, mixed> $uhrada Array of optional payment properties with these possible items:
84-
* string|Pokladna 'pokladna' cash register identifier
85-
* string 'typDokl' cash document type code
86-
* boolean 'kurzKDatuUhrady'
87-
* string 'uhrazujiciDokl' If not specified, new cash document is always created
88-
* string 'rada' document series for created cash document. E.g.:code:POKLADNA+
89-
* string 'datumUhrady' SQL format. Default: today
84+
* string|Pokladna 'pokladna' cash register identifier
85+
* string 'typDokl' cash document type code
86+
* boolean 'kurzKDatuUhrady'
87+
* string 'uhrazujiciDokl' If not specified, new cash document is always created
88+
* string 'rada' document series for created cash document. E.g.:code:POKLADNA+
89+
* string 'datumUhrady' SQL format. Default: today
9090
*
9191
* @return bool Result of payment attempt
9292
*/

src/AbraFlexi/Formats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Formats
2424
/**
2525
* Source FlexiBee server version.
2626
*/
27-
public static string $version = '2026.2.0';
27+
public static string $version = '2026.2.2';
2828

2929
/**
3030
* Availble Formats.

src/AbraFlexi/RO.php

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ public function setUp(array $options = []): bool
540540
/**
541541
* Set internal object name.
542542
*
543-
* @param string|null $objectName Object name to set
543+
* @param null|string $objectName Object name to set
544544
*
545545
* @return string Object name
546546
*/
@@ -853,7 +853,7 @@ public function setEvidence(string $evidence)
853853
/**
854854
* Return currently used evidence for communication.
855855
*
856-
* @return string|null Current evidence
856+
* @return null|string Current evidence
857857
*/
858858
public function getEvidence()
859859
{
@@ -873,7 +873,7 @@ public function setCompany($company): void
873873
/**
874874
* Obtain company now used.
875875
*
876-
* @return string|null Currently used company
876+
* @return null|string Currently used company
877877
*/
878878
public function getCompany()
879879
{
@@ -1625,7 +1625,7 @@ public function getFlexiData(string $suffix = '', $conditions = null)
16251625
/**
16261626
* Load record from AbraFlexi and store its data in the object.
16271627
*
1628-
* @param array<string, mixed>|int|string|null $id ID or conditions
1628+
* @param null|array<string, mixed>|int|string $id ID or conditions
16291629
*
16301630
* @return int Number of loaded items
16311631
*/
@@ -1828,10 +1828,10 @@ public function recordExists($data): bool
18281828
/**
18291829
* Return columns from AbraFlexi according to conditions.
18301830
*
1831-
* @param array<string, mixed>|int|string|null $conditions Array of conditions or record ID
1832-
* @param string|null $indexBy Column name to use for result keys
1831+
* @param null|array<string, mixed>|int|string $conditions Array of conditions or record ID
1832+
* @param null|string $indexBy Column name to use for result keys
18331833
*
1834-
* @return array<int|string, array<string, mixed>>|null Records
1834+
* @return null|array<int|string, array<string, mixed>> Records
18351835
*/
18361836
public function getAllFromAbraFlexi($conditions = null, $indexBy = null)
18371837
{
@@ -1876,11 +1876,11 @@ public function getSumsFromAbraFlexi(
18761876
/**
18771877
* Return columns from AbraFlexi according to conditions.
18781878
*
1879-
* @param string|array<string> $columnsList List of items or detail level: id|summary|full
1880-
* @param array<string, mixed> $conditions Array of conditions or record ID
1881-
* @param string|null $indexBy Column by which to index records
1879+
* @param array<string>|string $columnsList List of items or detail level: id|summary|full
1880+
* @param array<string, mixed> $conditions Array of conditions or record ID
1881+
* @param null|string $indexBy Column by which to index records
18821882
*
1883-
* @return array<int|string, array<string, mixed>>|null Records
1883+
* @return null|array<int|string, array<string, mixed>> Records
18841884
*/
18851885
public function getColumnsFromAbraFlexi(
18861886
$columnsList,
@@ -1978,7 +1978,7 @@ public function setPostFields($data): void
19781978
/**
19791979
* Get content ready to be sent as POST body.
19801980
*
1981-
* @return string|null POST data
1981+
* @return null|string POST data
19821982
*/
19831983
public function getPostFields()
19841984
{
@@ -1990,7 +1990,7 @@ public function getPostFields()
19901990
*
19911991
* @see https://demo.flexibee.eu/devdoc/identifiers Record identifiers
19921992
*
1993-
* @return int|null Record identifier represented by the object
1993+
* @return null|int Record identifier represented by the object
19941994
*/
19951995
public function getRecordID()
19961996
{
@@ -2006,7 +2006,7 @@ public function getRecordID()
20062006
*
20072007
* @see https://demo.flexibee.eu/devdoc/identifiers Record identifiers
20082008
*
2009-
* @return string|null Record code identifier
2009+
* @return null|string Record code identifier
20102010
*/
20112011
public function getRecordCode()
20122012
{
@@ -2018,7 +2018,7 @@ public function getRecordCode()
20182018
*
20192019
* @see https://demo.flexibee.eu/devdoc/identifiers Record identifiers
20202020
*
2021-
* @return int|string|null Record code identifier
2021+
* @return null|int|string Record code identifier
20222022
*/
20232023
public function getRecordIdent()
20242024
{
@@ -2130,7 +2130,7 @@ public function getExternalIDs()
21302130
*
21312131
* @see https://www.abraflexi.eu/api/dokumentace/ref/changes-api#globalVersion Global Version
21322132
*
2133-
* @return int|null Global version number
2133+
* @return null|int Global version number
21342134
*/
21352135
public function getGlobalVersion()
21362136
{
@@ -2142,7 +2142,7 @@ public function getGlobalVersion()
21422142
/**
21432143
* Gives you current ApiURL with given format suffix.
21442144
*
2145-
* @param string|null $format json|html|xml|...
2145+
* @param null|string $format json|html|xml|...
21462146
*
21472147
* @return string API URL for current record or object/evidence
21482148
*/
@@ -2297,9 +2297,9 @@ public function getColumnsInfo($evidence = null)
22972297
* Gives you properties for (current) evidence column.
22982298
*
22992299
* @param string $column Name of column
2300-
* @param string|null $evidence Evidence name if different
2300+
* @param null|string $evidence Evidence name if different
23012301
*
2302-
* @return array<string, mixed>|null Column properties or null if column does not exist
2302+
* @return null|array<string, mixed> Column properties or null if column does not exist
23032303
*/
23042304
public function getColumnInfo($column, $evidence = null)
23052305
{
@@ -2311,9 +2311,9 @@ public function getColumnInfo($column, $evidence = null)
23112311
/**
23122312
* Obtain actions for current (or given) evidence.
23132313
*
2314-
* @param string|null $evidence Evidence name
2314+
* @param null|string $evidence Evidence name
23152315
*
2316-
* @return array<string, mixed>|null Evidence actions structure
2316+
* @return null|array<string, mixed> Evidence actions structure
23172317
*/
23182318
public function getActionsInfo($evidence = null)
23192319
{
@@ -2335,9 +2335,9 @@ public function getActionsInfo($evidence = null)
23352335
/**
23362336
* Obtain relations for current (or given) evidence.
23372337
*
2338-
* @param string|null $evidence Evidence name
2338+
* @param null|string $evidence Evidence name
23392339
*
2340-
* @return array<string, mixed>|null Evidence relations structure
2340+
* @return null|array<string, mixed> Evidence relations structure
23412341
*/
23422342
public function getRelationsInfo($evidence = null)
23432343
{
@@ -2386,7 +2386,7 @@ public function getEvidenceInfo(string $evidence = ''): array
23862386
/**
23872387
* Obtain name for current (or given) evidence path.
23882388
*
2389-
* @param string|null $evidence Evidence name
2389+
* @param null|string $evidence Evidence name
23902390
*
23912391
* @return string Evidence name
23922392
*/
@@ -2872,8 +2872,8 @@ static function ($key) {
28722872
/**
28732873
* Add info about used user, server and libraries.
28742874
*
2875-
* @param string|null $prefix Banner prefix text
2876-
* @param string|null $suffix Banner suffix text
2875+
* @param null|string $prefix Banner prefix text
2876+
* @param null|string $suffix Banner suffix text
28772877
*/
28782878
public function logBanner($prefix = null, $suffix = null): void
28792879
{
@@ -2908,7 +2908,7 @@ public function getMessages(): array
29082908
/**
29092909
* Get current operation name.
29102910
*
2911-
* @return string|null Current operation name
2911+
* @return null|string Current operation name
29122912
*/
29132913
public function getOperation(): string
29142914
{

src/AbraFlexi/RW.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function setUp($options = []): bool
8989
/**
9090
* Save record (if evidence allows it).
9191
*
92-
* @param array<string, mixed>|null $data Data to save
92+
* @param null|array<string, mixed> $data Data to save
9393
*
9494
* @throws Exception Evidence does not support Import
9595
*
@@ -276,7 +276,7 @@ public function getLastInsertedId()
276276
/**
277277
* Delete record in AbraFlexi.
278278
*
279-
* @param int|string|null $id Record identifier
279+
* @param null|int|string $id Record identifier
280280
*
281281
* @return bool Response code is 200 ?
282282
*/
@@ -334,7 +334,7 @@ public function takeData(array $data): int
334334
/**
335335
* Control data for ReadOnly columns presence.
336336
*
337-
* @param array<string, mixed>|null $data Data to check
337+
* @param null|array<string, mixed> $data Data to check
338338
*
339339
* @return array<string, mixed> List of ReadOnly columns. Empty if all is ok
340340
*/
@@ -449,7 +449,7 @@ public function vazbaDel($vazba): void
449449
* Convert data to AbraFlexi like JSON format.
450450
* Array of Labels is converted to comma separated list.
451451
*
452-
* @param array<string, array<string, string>|string>|null $data Data to convert
452+
* @param null|array<string, array<string, string>|string> $data Data to convert
453453
* @param int $options JSON_encode options like JSON_PRETTY_PRINT etc
454454
*
455455
* @return string JSON encoded data
@@ -528,10 +528,10 @@ public function success(): bool
528528
*
529529
* !!!Experimental Feature!!!
530530
*
531-
* @param int $source Source record ID
532-
* @param array<string, mixed> $overrides Data overrides
531+
* @param int $source Source record ID
532+
* @param array<string, mixed> $overrides Data overrides
533533
*
534-
* @return RW|null Copied record object or null in case of failure
534+
* @return null|RW Copied record object or null in case of failure
535535
*/
536536
public function copy($source, $overrides = [])
537537
{
@@ -631,9 +631,9 @@ public function addExternalID($extId)
631631
/**
632632
* Change value of external id identified by selector. Add new if not exists.
633633
*
634-
* @param string $selector ext:$selector:$newValue
635-
* @param int|string $newValue String or number
636-
* @param int|string|null $forID Other than current record id
634+
* @param string $selector ext:$selector:$newValue
635+
* @param int|string $newValue String or number
636+
* @param null|int|string $forID Other than current record id
637637
*
638638
* @return array<string, mixed> Operation result
639639
*/

src/AbraFlexi/Relations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Relations
2424
/**
2525
* Source FlexiBee server version.
2626
*/
27-
public static string $version = '2026.2.0';
27+
public static string $version = '2026.2.2';
2828

2929
/**
3030
* Evidence adresar (Adresy firem) Relations.

static/EvidenceFullList.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)