Skip to content

Commit a210d11

Browse files
authored
Merge pull request #10 from answear/add-new-type-enum-ok
Add new type enum ok
2 parents 918a61e + 5a7b9cb commit a210d11

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
\.php_cs\.cache
33
.phpunit.result.cache
44
composer.lock
5+
.php-cs-fixer.cache

.php_cs renamed to .php-cs-fixer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
)
99
->in(__DIR__);
1010

11-
return PhpCsFixer\Config::create()
11+
$config = new PhpCsFixer\Config();
12+
13+
return $config
1214
->setRules(
1315
[
1416
'@Symfony' => true,

grumphp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ grumphp:
1818
phpcsfixer:
1919
allow_risky: true
2020
cache_file: ~
21-
config: './.php_cs'
21+
config: './.php-cs-fixer.php'
2222
using_cache: true
2323
verbose: true
2424
phpstan:

src/Enum/Type.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Type extends Enum
1515
public const SWIP_BOX_2 = '400402';
1616
public const POINT_PACK = '500501';
1717
public const FOREIGN_LOCKER = '400';
18+
public const FOREIGN_EXTERNAL_LOCKER = '501';
1819

1920
public static function standard(): self
2021
{
@@ -50,4 +51,9 @@ public static function foreignLocker(): self
5051
{
5152
return self::get(self::FOREIGN_LOCKER);
5253
}
54+
55+
public static function foreignExternalLocker(): self
56+
{
57+
return self::get(self::FOREIGN_EXTERNAL_LOCKER);
58+
}
5359
}

0 commit comments

Comments
 (0)