Skip to content

Commit 4403319

Browse files
chore: add additional php doc tags
1 parent 95b27e8 commit 4403319

12 files changed

+41
-4
lines changed

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
*.swo
2-
*.swp
1+
composer.lock
2+
docs/
33
.idea/
44
.php-cs-fixer.cache
55
.php-cs-fixer.php
6-
.phpdoc/
76
.phpunit.cache
8-
composer.lock
97
phpunit.xml
108
playground/
9+
*.swo
10+
*.swp
1111
vendor/

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"symfony/http-client": "^7"
4545
},
4646
"scripts": {
47+
"build:docs": "curl --etag-save ./vendor/ag.etags --etag-compare ./vendor/ag.etags --create-dirs --remote-name --output-dir ./vendor/bin --no-progress-meter -- https://github.com/ApiGen/ApiGen/releases/latest/download/apigen.phar && php ./vendor/bin/apigen.phar --output docs -- src",
4748
"lint": "./scripts/lint",
4849
"test": "./scripts/test"
4950
}

src/CasGenerator/CasGeneratorGenerateCasParams.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* This endpoint generates CAS (Consolidated Account Statement) documents by submitting a mailback request to the specified CAS authority.
1515
* Currently only supports KFintech, with plans to support CAMS, CDSL, and NSDL in the future.
1616
*
17+
* @see CasParser\CasGenerator->generateCas
18+
*
1719
* @phpstan-type cas_generator_generate_cas_params = array{
1820
* email: string,
1921
* fromDate: string,

src/CasParser/CasParserCamsKfintechParams.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* This endpoint specifically parses CAMS/KFintech CAS (Consolidated Account Statement) PDF files and returns data in a unified format.
1414
* Use this endpoint when you know the PDF is from CAMS or KFintech.
1515
*
16+
* @see CasParser\CasParser->camsKfintech
17+
*
1618
* @phpstan-type cas_parser_cams_kfintech_params = array{
1719
* password?: string, pdfFile?: string, pdfURL?: string
1820
* }

src/CasParser/CasParserCdslParams.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* This endpoint specifically parses CDSL CAS (Consolidated Account Statement) PDF files and returns data in a unified format.
1414
* Use this endpoint when you know the PDF is from CDSL.
1515
*
16+
* @see CasParser\CasParser->cdsl
17+
*
1618
* @phpstan-type cas_parser_cdsl_params = array{
1719
* password?: string, pdfFile?: string, pdfURL?: string
1820
* }

src/CasParser/CasParserNsdlParams.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* This endpoint specifically parses NSDL CAS (Consolidated Account Statement) PDF files and returns data in a unified format.
1414
* Use this endpoint when you know the PDF is from NSDL.
1515
*
16+
* @see CasParser\CasParser->nsdl
17+
*
1618
* @phpstan-type cas_parser_nsdl_params = array{
1719
* password?: string, pdfFile?: string, pdfURL?: string
1820
* }

src/CasParser/CasParserSmartParseParams.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* This endpoint parses CAS (Consolidated Account Statement) PDF files from NSDL, CDSL, or CAMS/KFintech and returns data in a unified format.
1414
* It auto-detects the CAS type and transforms the data into a consistent structure regardless of the source.
1515
*
16+
* @see CasParser\CasParser->smartParse
17+
*
1618
* @phpstan-type cas_parser_smart_parse_params = array{
1719
* password?: string, pdfFile?: string, pdfURL?: string
1820
* }

src/Client.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ class Client extends BaseClient
1212
{
1313
public string $apiKey;
1414

15+
/**
16+
* @api
17+
*/
1518
public CasParserService $casParser;
1619

20+
/**
21+
* @api
22+
*/
1723
public CasGeneratorService $casGenerator;
1824

1925
public function __construct(?string $apiKey = null, ?string $baseUrl = null)

src/Core/ServiceContracts/CasGeneratorContract.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
interface CasGeneratorContract
1414
{
1515
/**
16+
* @api
17+
*
1618
* @param string $email Email address to receive the CAS document
1719
* @param string $fromDate Start date for the CAS period (format YYYY-MM-DD)
1820
* @param string $password Password to protect the generated CAS PDF

src/Core/ServiceContracts/CasParserContract.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
interface CasParserContract
1313
{
1414
/**
15+
* @api
16+
*
1517
* @param string $password Password for the PDF file (if required)
1618
* @param string $pdfFile Base64 encoded CAS PDF file
1719
* @param string $pdfURL URL to the CAS PDF file
@@ -24,6 +26,8 @@ public function camsKfintech(
2426
): UnifiedResponse;
2527

2628
/**
29+
* @api
30+
*
2731
* @param string $password Password for the PDF file (if required)
2832
* @param string $pdfFile Base64 encoded CAS PDF file
2933
* @param string $pdfURL URL to the CAS PDF file
@@ -36,6 +40,8 @@ public function cdsl(
3640
): UnifiedResponse;
3741

3842
/**
43+
* @api
44+
*
3945
* @param string $password Password for the PDF file (if required)
4046
* @param string $pdfFile Base64 encoded CAS PDF file
4147
* @param string $pdfURL URL to the CAS PDF file
@@ -48,6 +54,8 @@ public function nsdl(
4854
): UnifiedResponse;
4955

5056
/**
57+
* @api
58+
*
5159
* @param string $password Password for the PDF file (if required)
5260
* @param string $pdfFile Base64 encoded CAS PDF file
5361
* @param string $pdfURL URL to the CAS PDF file

0 commit comments

Comments
 (0)