Skip to content

Commit

Permalink
fix: transform static to const
Browse files Browse the repository at this point in the history
  • Loading branch information
rem42 committed Jul 5, 2024
1 parent 27606af commit 4c9d7e9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
12 changes: 6 additions & 6 deletions src/Rest/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

final class Category
{
public static string $GIFT = '1';
public const GIFT = '1';

public static string $COMMERCIAL_SAMPLE = '2';
public const COMMERCIAL_SAMPLE = '2';

public static string $COMMERCIAL = '3';
public const COMMERCIAL = '3';

public static string $DOCUMENT = '4';
public const DOCUMENT = '4';

public static string $OTHER = '5';
public const OTHER = '5';

public static string $MERCHANDISE_RETURN = '6';
public const MERCHANDISE_RETURN = '6';

private string $value;

Expand Down
16 changes: 8 additions & 8 deletions src/Rest/OutputFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

final class OutputFormat
{
public static string $ZPL_10X15_203DPI = 'ZPL_10x15_203dpi';
public static string $ZPL_10X15_300DPI = 'ZPL_10x15_300dpi';
public static string $DPL_10X15_203DPI = 'DPL_10x15_203dpi';
public static string $DPL_10X15_300DPI = 'DPL_10x15_300dpi';
public static string $PDF_10X15_300DPI = 'PDF_10x15_300dpi';
public static string $PDF_A4_300DPI = 'PDF_A4_300dpi';
public static string $RETURNTYPE_SENDPDFBYMAIL = 'SendPDFByMail';
public static string $RETURNTYPE_SENDPDFLINKBYMAIL = 'SendPDFLinkByMail';
public const ZPL_10X15_203DPI = 'ZPL_10x15_203dpi';
public const ZPL_10X15_300DPI = 'ZPL_10x15_300dpi';
public const DPL_10X15_203DPI = 'DPL_10x15_203dpi';
public const DPL_10X15_300DPI = 'DPL_10x15_300dpi';
public const PDF_10X15_300DPI = 'PDF_10x15_300dpi';
public const PDF_A4_300DPI = 'PDF_A4_300dpi';
public const RETURNTYPE_SENDPDFBYMAIL = 'SendPDFByMail';
public const RETURNTYPE_SENDPDFLINKBYMAIL = 'SendPDFLinkByMail';

private int $x = 0;

Expand Down
28 changes: 14 additions & 14 deletions src/Rest/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@

final class Service
{
public static string $A2P = 'A2P';
public const A2P = 'A2P';

public static string $BPR = 'BPR';
public const BPR = 'BPR';

public static string $ACP = 'ACP';
public const ACP = 'ACP';

public static string $CDI = 'CDI';
public const CDI = 'CDI';

public static string $CMT = 'CMT';
public const CMT = 'CMT';

public static string $BDP = 'BDP';
public const BDP = 'BDP';

public static string $PCS = 'PCS';
public const PCS = 'PCS';

public static string $DOM = 'DOM';
public const DOM = 'DOM';

public static string $DOS = 'DOS';
public const DOS = 'DOS';

public static string $BOS = 'BOS';
public const BOS = 'BOS';

public static string $BOM = 'BOM';
public const BOM = 'BOM';

public static string $RECOMMENDATIONLEVEL_R1 = 'R1';
public const RECOMMENDATIONLEVEL_R1 = 'R1';

public static string $RECOMMENDATIONLEVEL_R2 = 'R2';
public const RECOMMENDATIONLEVEL_R2 = 'R2';

public static string $RECOMMENDATIONLEVEL_R3 = 'R3';
public const RECOMMENDATIONLEVEL_R3 = 'R3';

private string $productCode;

Expand Down

0 comments on commit 4c9d7e9

Please sign in to comment.