Skip to content

Commit

Permalink
Add new type to enum
Browse files Browse the repository at this point in the history
  • Loading branch information
olekans committed Mar 1, 2024
1 parent 918a61e commit 5a7b9cb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
\.php_cs\.cache
.phpunit.result.cache
composer.lock
.php-cs-fixer.cache
4 changes: 3 additions & 1 deletion .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
)
->in(__DIR__);

return PhpCsFixer\Config::create()
$config = new PhpCsFixer\Config();

return $config
->setRules(
[
'@Symfony' => true,
Expand Down
2 changes: 1 addition & 1 deletion grumphp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ grumphp:
phpcsfixer:
allow_risky: true
cache_file: ~
config: './.php_cs'
config: './.php-cs-fixer.php'
using_cache: true
verbose: true
phpstan:
Expand Down
6 changes: 6 additions & 0 deletions src/Enum/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Type extends Enum
public const SWIP_BOX_2 = '400402';
public const POINT_PACK = '500501';
public const FOREIGN_LOCKER = '400';
public const FOREIGN_EXTERNAL_LOCKER = '501';

public static function standard(): self
{
Expand Down Expand Up @@ -50,4 +51,9 @@ public static function foreignLocker(): self
{
return self::get(self::FOREIGN_LOCKER);
}

public static function foreignExternalLocker(): self
{
return self::get(self::FOREIGN_EXTERNAL_LOCKER);
}
}

0 comments on commit 5a7b9cb

Please sign in to comment.