Skip to content

Commit b8d1072

Browse files
author
Vítězslav Dvořák
committed
Updates documentation comments to English
Translates various documentation comments from Czech to English throughout several classes to improve accessibility for English-speaking developers. No changes to the code logic or functionality were made; this update focuses solely on enhancing the clarity and understanding of the codebase.
1 parent e01bd2b commit b8d1072

39 files changed

Lines changed: 310 additions & 316 deletions

src/AbraFlexi/Adresar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Adresar extends RW implements Document
3737
use kod;
3838

3939
/**
40-
* Evidence užitá objektem.
40+
* Evidence used by object.
4141
*/
4242
public ?string $evidence = 'adresar';
4343

src/AbraFlexi/Banka.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Banka extends RW implements \AbraFlexi\Document
4040
use lock;
4141

4242
/**
43-
* Evidence užitá objektem.
43+
* Evidence used by object.
4444
*/
4545
public ?string $evidence = 'banka';
4646

src/AbraFlexi/Cenik.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* AbraFlexi - Pricelist class.
5-
* Objekt ceníku.
5+
* Pricelist object.
66
*
77
* @author Vítězslav Dvořák <vitex@arachne.cz>
88
* @copyright (C) 2016-2024 Spoje.Net
@@ -23,9 +23,9 @@
2323
namespace AbraFlexi;
2424

2525
/**
26-
* Ceník - Pricelist.
26+
* Pricelist.
2727
*
28-
* @see https://demo.flexibee.eu/c/demo/cenik/properties Vlastnosti evidence
28+
* @see https://demo.flexibee.eu/c/demo/cenik/properties Evidence properties
2929
*
3030
* @no-named-arguments
3131
*/
@@ -37,7 +37,7 @@ class Cenik extends RW
3737
use kod;
3838

3939
/**
40-
* Evidence užitá objektem.
40+
* Evidence used by object.
4141
*/
4242
public ?string $evidence = 'cenik';
4343
}

src/AbraFlexi/Changes.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,23 @@
1515
namespace AbraFlexi;
1616

1717
/**
18-
* Log změn v evidencích.
18+
* Changes log in evidence.
1919
*
20-
* @see https://www.abraflexi.eu/api/dokumentace/ref/changes-api/ Dokumentace
20+
* @see https://www.abraflexi.eu/api/dokumentace/ref/changes-api/ Documentation
2121
*
2222
* @no-named-arguments
2323
*/
2424
class Changes extends RO
2525
{
2626
/**
27-
* Evidence užitá objektem.
27+
* Evidence used by object.
2828
*/
2929
public ?string $evidence = 'changes';
3030

3131
/**
32-
* Povolí oznamování změn
3332
* Allow changes notification.
33+
*
34+
* @return bool Success status
3435
*/
3536
public function enable(): bool
3637
{
@@ -40,8 +41,9 @@ public function enable(): bool
4041
}
4142

4243
/**
43-
* Zakáže oznamování změn
4444
* Disallow changes notification.
45+
*
46+
* @return bool Success status
4547
*/
4648
public function disable(): bool
4749
{
@@ -74,7 +76,7 @@ public function recordExists($data): bool
7476

7577
/**
7678
* Obtain actual GlobalVersion
77-
* Vrací aktuální globální verzi změn.
79+
* Returns current global version of changes.
7880
*
7981
* @see https://www.abraflexi.eu/api/dokumentace/ref/changes-api#globalVersion Globální Verze
8082
*

src/AbraFlexi/Company.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* AbraFlexi - Objekt Společnosti.
4+
* AbraFlexi - Company Object.
55
*
66
* @author Vítězslav Dvořák <vitex@arachne.cz>
77
* @copyright (C) 2015-2023 Spoje.Net
@@ -22,19 +22,19 @@
2222
namespace AbraFlexi;
2323

2424
/**
25-
* Firmy/účetní jednotky.
25+
* Companies/accounting units.
2626
*
27-
* @note Tato položka nemá dostupné položky evidence
27+
* @note This item has no available evidence items
2828
*
2929
* @no-named-arguments
3030
*/
3131
class Company extends RW
3232
{
3333
/**
34-
* AbraFlexi Company Class .
34+
* AbraFlexi Company Class.
3535
*
36-
* @param array|string $init company dbNazev or initial data
37-
* @param array $options Connection settings override
36+
* @param array<string, mixed>|string|null $init Company dbNazev or initial data
37+
* @param array<string, mixed> $options Connection settings override
3838
*/
3939
public function __construct($init = null, $options = [])
4040
{
@@ -76,7 +76,7 @@ public function processInit($init): void
7676
}
7777

7878
/**
79-
* Vrací základní URL pro užitou evidenci.
79+
* Returns base URL for used evidence.
8080
*
8181
* @see https://www.abraflexi.eu/api/dokumentace/ref/urls/ Sestavování URL
8282
*
@@ -110,7 +110,7 @@ public function getApiURL($format = null): string
110110
}
111111

112112
/**
113-
* Vrací název evidence použité v odpovědích z AbraFlexi.
113+
* Returns name of evidence used in responses from AbraFlexi.
114114
*/
115115
public function getResponseEvidence(): string
116116
{

src/AbraFlexi/DateTime.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
namespace AbraFlexi;
1616

1717
/**
18-
* Description of DateTime.
18+
* AbraFlexi DateTime class.
1919
*
2020
* @author vitex
2121
*
@@ -39,7 +39,7 @@ class DateTime extends \DateTime implements \Stringable
3939
*
4040
* @param string $flexidatetime 2017-09-26T10:00:53.755+02:00 or older 2017-05-19T00:00:00+02:00
4141
*
42-
* @return \DateTime|false
42+
* @throws \Exception Invalid date format
4343
*/
4444
public function __construct(string $flexidatetime = 'NOW')
4545
{

src/AbraFlexi/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function unsetLabels();
6363
public function getFirmaObject($options = ['details' => 'id']);
6464

6565
/**
66-
* Vrací z AbraFlexi sumaci i podle podmínek.
66+
* Returns summation from AbraFlexi also according to conditions.
6767
*
6868
* @param array $conditions pole podmínek nebo ID záznamu
6969
*

src/AbraFlexi/DodavatelskaSmlouva.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* AbraFlexi - Objekt dodavatelské smlouvy.
4+
* AbraFlexi - Supplier contract object.
55
*
66
* @author Vítězslav Dvořák <vitex@arachne.cz>
77
* @copyright (C) 2015-2023 Spoje.Net
@@ -22,7 +22,7 @@
2222
namespace AbraFlexi;
2323

2424
/**
25-
* Dodavatelská smlouva.
25+
* Supplier contract.
2626
*
2727
* @see https://demo.flexibee.eu/c/demo/dodavatelska-smlouva/properties
2828
*
@@ -35,7 +35,7 @@ class DodavatelskaSmlouva extends RW
3535
use firma;
3636

3737
/**
38-
* Evidence užitá objektem.
38+
* Evidence used by object.
3939
*/
4040
public ?string $evidence = 'dodavatelska-smlouva';
4141

src/AbraFlexi/EvidenceList.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
* Evidencies listing and its properties
1919
* Seznam Evidencí a jejich vlastnosti.
2020
*
21-
* @see https://demo.flexibee.eu/c/demo/evidence-list Přehled evidencí
21+
* @see https://demo.flexibee.eu/c/demo/evidence-list Evidence overview
2222
*/
2323
class EvidenceList extends RO
2424
{
2525
/**
26-
* Evidence užitá objektem.
26+
* Evidence used by object.
2727
*/
2828
public ?string $evidence = 'evidence-list';
2929

3030
/**
31-
* Základní namespace pro komunikaci s FlexiBee.
31+
* Base namespace for communication with FlexiBee.
3232
* Basic namespace for communication with FlexiBee.
3333
*
3434
* @var string Jmený prostor datového bloku odpovědi

src/AbraFlexi/Exception.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
namespace AbraFlexi;
1616

1717
/**
18-
* Description of Exception.
18+
* AbraFlexi Exception class.
1919
*
2020
* @author vitex
2121
*
@@ -38,8 +38,9 @@ class Exception extends \Ease\Exception
3838
/**
3939
* AbraFlexi response as Exception.
4040
*
41-
* @param string $message good to know
42-
* @param RO $caller AbraFlexi Object
41+
* @param string $message Exception message
42+
* @param RO $caller AbraFlexi Object
43+
* @param \Ease\Exception|null $previous Previous exception
4344
*/
4445
public function __construct($message, RO $caller, ?\Ease\Exception $previous = null)
4546
{

0 commit comments

Comments
 (0)