Skip to content

Commit 5ceb38f

Browse files
chore: use pascal case for phpstan typedefs
1 parent 0db167e commit 5ceb38f

File tree

83 files changed

+174
-166
lines changed

Some content is hidden

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

83 files changed

+174
-166
lines changed

src/Documents/Allowance.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* An allowance is a discount for example for early payment, volume discount, etc.
1414
*
15-
* @phpstan-type allowance_alias = array{
15+
* @phpstan-type AllowanceShape = array{
1616
* amount?: string|null,
1717
* baseAmount?: string|null,
1818
* multiplierFactor?: string|null,
@@ -24,7 +24,7 @@
2424
*/
2525
final class Allowance implements BaseModel
2626
{
27-
/** @use SdkModel<allowance_alias> */
27+
/** @use SdkModel<AllowanceShape> */
2828
use SdkModel;
2929

3030
/**

src/Documents/Attachments/AttachmentAddParams.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
*
1515
* @see EInvoiceAPI\Documents\Attachments->add
1616
*
17-
* @phpstan-type attachment_add_params = array{file: string}
17+
* @phpstan-type AttachmentAddParamsShape = array{file: string}
1818
*/
1919
final class AttachmentAddParams implements BaseModel
2020
{
21-
/** @use SdkModel<attachment_add_params> */
21+
/** @use SdkModel<AttachmentAddParamsShape> */
2222
use SdkModel;
2323
use SdkParams;
2424

src/Documents/Attachments/AttachmentDeleteParams.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
*
1515
* @see EInvoiceAPI\Documents\Attachments->delete
1616
*
17-
* @phpstan-type attachment_delete_params = array{documentID: string}
17+
* @phpstan-type AttachmentDeleteParamsShape = array{documentID: string}
1818
*/
1919
final class AttachmentDeleteParams implements BaseModel
2020
{
21-
/** @use SdkModel<attachment_delete_params> */
21+
/** @use SdkModel<AttachmentDeleteParamsShape> */
2222
use SdkModel;
2323
use SdkParams;
2424

src/Documents/Attachments/AttachmentDeleteResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
use EInvoiceAPI\Core\Conversion\Contracts\ResponseConverter;
1212

1313
/**
14-
* @phpstan-type attachment_delete_response = array{isDeleted: bool}
14+
* @phpstan-type AttachmentDeleteResponseShape = array{isDeleted: bool}
1515
*/
1616
final class AttachmentDeleteResponse implements BaseModel, ResponseConverter
1717
{
18-
/** @use SdkModel<attachment_delete_response> */
18+
/** @use SdkModel<AttachmentDeleteResponseShape> */
1919
use SdkModel;
2020

2121
use SdkResponse;

src/Documents/Attachments/AttachmentRetrieveParams.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
*
1515
* @see EInvoiceAPI\Documents\Attachments->retrieve
1616
*
17-
* @phpstan-type attachment_retrieve_params = array{documentID: string}
17+
* @phpstan-type AttachmentRetrieveParamsShape = array{documentID: string}
1818
*/
1919
final class AttachmentRetrieveParams implements BaseModel
2020
{
21-
/** @use SdkModel<attachment_retrieve_params> */
21+
/** @use SdkModel<AttachmentRetrieveParamsShape> */
2222
use SdkModel;
2323
use SdkParams;
2424

src/Documents/Attachments/DocumentAttachment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use EInvoiceAPI\Core\Conversion\Contracts\ResponseConverter;
1212

1313
/**
14-
* @phpstan-type document_attachment = array{
14+
* @phpstan-type DocumentAttachmentShape = array{
1515
* id: string,
1616
* fileName: string,
1717
* fileSize?: int,
@@ -21,7 +21,7 @@
2121
*/
2222
final class DocumentAttachment implements BaseModel, ResponseConverter
2323
{
24-
/** @use SdkModel<document_attachment> */
24+
/** @use SdkModel<DocumentAttachmentShape> */
2525
use SdkModel;
2626

2727
use SdkResponse;

src/Documents/Charge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* A charge is an additional fee for example for late payment, late delivery, etc.
1414
*
15-
* @phpstan-type charge_alias = array{
15+
* @phpstan-type ChargeShape = array{
1616
* amount?: string|null,
1717
* baseAmount?: string|null,
1818
* multiplierFactor?: string|null,
@@ -24,7 +24,7 @@
2424
*/
2525
final class Charge implements BaseModel
2626
{
27-
/** @use SdkModel<charge_alias> */
27+
/** @use SdkModel<ChargeShape> */
2828
use SdkModel;
2929

3030
/**

src/Documents/DocumentAttachmentCreate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
use EInvoiceAPI\Core\Contracts\BaseModel;
1010

1111
/**
12-
* @phpstan-type document_attachment_create = array{
12+
* @phpstan-type DocumentAttachmentCreateShape = array{
1313
* fileName: string, fileData?: string|null, fileSize?: int, fileType?: string
1414
* }
1515
*/
1616
final class DocumentAttachmentCreate implements BaseModel
1717
{
18-
/** @use SdkModel<document_attachment_create> */
18+
/** @use SdkModel<DocumentAttachmentCreateShape> */
1919
use SdkModel;
2020

2121
#[Api('file_name')]

src/Documents/DocumentCreate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use EInvoiceAPI\Inbox\DocumentState;
1717

1818
/**
19-
* @phpstan-type document_create = array{
19+
* @phpstan-type DocumentCreateShape = array{
2020
* allowances?: list<Allowance>|null,
2121
* amountDue?: float|string|null,
2222
* attachments?: list<DocumentAttachmentCreate>|null,
@@ -67,7 +67,7 @@
6767
*/
6868
final class DocumentCreate implements BaseModel
6969
{
70-
/** @use SdkModel<document_create> */
70+
/** @use SdkModel<DocumentCreateShape> */
7171
use SdkModel;
7272

7373
/** @var list<Allowance>|null $allowances */

src/Documents/DocumentCreate/Allowance.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* An allowance is a discount for example for early payment, volume discount, etc.
1414
*
15-
* @phpstan-type allowance_alias = array{
15+
* @phpstan-type AllowanceShape = array{
1616
* amount?: float|string|null,
1717
* baseAmount?: float|string|null,
1818
* multiplierFactor?: float|string|null,
@@ -24,7 +24,7 @@
2424
*/
2525
final class Allowance implements BaseModel
2626
{
27-
/** @use SdkModel<allowance_alias> */
27+
/** @use SdkModel<AllowanceShape> */
2828
use SdkModel;
2929

3030
/**

0 commit comments

Comments
 (0)