johnykvsky /
dummygenerator
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types = 1); |
||
| 4 | |||
| 5 | namespace DummyGenerator\DefinitionPack; |
||
| 6 | |||
| 7 | use DummyGenerator\Core\Address; |
||
| 8 | use DummyGenerator\Core\Barcode; |
||
| 9 | use DummyGenerator\Core\Biased; |
||
| 10 | use DummyGenerator\Core\Blood; |
||
| 11 | use DummyGenerator\Core\Calculator\EanCalculator; |
||
|
0 ignored issues
–
show
|
|||
| 12 | use DummyGenerator\Core\Calculator\IbanCalculator; |
||
| 13 | use DummyGenerator\Core\Calculator\IsbnCalculator; |
||
|
0 ignored issues
–
show
The type
DummyGenerator\Core\Calculator\IsbnCalculator was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 14 | use DummyGenerator\Core\Calculator\LuhnCalculator; |
||
| 15 | use DummyGenerator\Core\Color; |
||
| 16 | use DummyGenerator\Core\Company; |
||
| 17 | use DummyGenerator\Core\Coordinates; |
||
| 18 | use DummyGenerator\Core\Country; |
||
| 19 | use DummyGenerator\Core\DateTime; |
||
| 20 | use DummyGenerator\Core\Enum; |
||
| 21 | use DummyGenerator\Core\File; |
||
| 22 | use DummyGenerator\Core\Hash; |
||
| 23 | use DummyGenerator\Core\Internet; |
||
| 24 | use DummyGenerator\Core\Language; |
||
| 25 | use DummyGenerator\Core\Lorem; |
||
| 26 | use DummyGenerator\Core\Number; |
||
| 27 | use DummyGenerator\Core\Payment; |
||
| 28 | use DummyGenerator\Core\Person; |
||
| 29 | use DummyGenerator\Core\PhoneNumber; |
||
| 30 | use DummyGenerator\Core\Randomizer\Randomizer; |
||
| 31 | use DummyGenerator\Core\Replacer\Replacer; |
||
|
0 ignored issues
–
show
The type
DummyGenerator\Core\Replacer\Replacer was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 32 | use DummyGenerator\Core\Strings; |
||
|
0 ignored issues
–
show
The type
DummyGenerator\Core\Strings was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 33 | use DummyGenerator\Core\Text; |
||
| 34 | use DummyGenerator\Core\Transliterator\Transliterator; |
||
| 35 | use DummyGenerator\Core\UserAgent; |
||
| 36 | use DummyGenerator\Core\Version; |
||
| 37 | use DummyGenerator\Definitions\Calculator\CalculatorInterface; |
||
| 38 | use DummyGenerator\Definitions\Calculator\EanCalculatorInterface; |
||
| 39 | use DummyGenerator\Definitions\Calculator\IbanCalculatorInterface; |
||
| 40 | use DummyGenerator\Definitions\Calculator\IsbnCalculatorInterface; |
||
| 41 | use DummyGenerator\Definitions\Calculator\LuhnCalculatorInterface; |
||
| 42 | use DummyGenerator\Definitions\DefinitionInterface; |
||
| 43 | use DummyGenerator\Definitions\Extension\AddressExtensionInterface; |
||
| 44 | use DummyGenerator\Definitions\Extension\BarcodeExtensionInterface; |
||
| 45 | use DummyGenerator\Definitions\Extension\BiasedExtensionInterface; |
||
| 46 | use DummyGenerator\Definitions\Extension\BloodExtensionInterface; |
||
| 47 | use DummyGenerator\Definitions\Extension\ColorExtensionInterface; |
||
| 48 | use DummyGenerator\Definitions\Extension\CompanyExtensionInterface; |
||
| 49 | use DummyGenerator\Definitions\Extension\CoordinatesExtensionInterface; |
||
| 50 | use DummyGenerator\Definitions\Extension\CountryExtensionInterface; |
||
| 51 | use DummyGenerator\Definitions\Extension\DateTimeExtensionInterface; |
||
| 52 | use DummyGenerator\Definitions\Extension\EnumExtensionInterface; |
||
| 53 | use DummyGenerator\Definitions\Extension\ExtensionInterface; |
||
| 54 | use DummyGenerator\Definitions\Extension\FileExtensionInterface; |
||
| 55 | use DummyGenerator\Definitions\Extension\HashExtensionInterface; |
||
| 56 | use DummyGenerator\Definitions\Extension\InternetExtensionInterface; |
||
| 57 | use DummyGenerator\Definitions\Extension\LanguageExtensionInterface; |
||
| 58 | use DummyGenerator\Definitions\Extension\LoremExtensionInterface; |
||
| 59 | use DummyGenerator\Definitions\Extension\NumberExtensionInterface; |
||
| 60 | use DummyGenerator\Definitions\Extension\PaymentExtensionInterface; |
||
| 61 | use DummyGenerator\Definitions\Extension\PersonExtensionInterface; |
||
|
0 ignored issues
–
show
The type
DummyGenerator\Definitio...ersonExtensionInterface was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 62 | use DummyGenerator\Definitions\Extension\PhoneNumberExtensionInterface; |
||
| 63 | use DummyGenerator\Definitions\Extension\StringsExtensionInterface; |
||
| 64 | use DummyGenerator\Definitions\Extension\TextExtensionInterface; |
||
| 65 | use DummyGenerator\Definitions\Extension\UserAgentExtensionInterface; |
||
| 66 | use DummyGenerator\Definitions\Extension\VersionExtensionInterface; |
||
| 67 | use DummyGenerator\Definitions\Randomizer\RandomizerInterface; |
||
| 68 | use DummyGenerator\Definitions\Replacer\ReplacerInterface; |
||
| 69 | use DummyGenerator\Definitions\Transliterator\TransliteratorInterface; |
||
| 70 | |||
| 71 | readonly class DefinitionPack implements DefinitionPackInterface |
||
| 72 | { |
||
| 73 | /** @var array<string, class-string<DefinitionInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 74 | private array $coreDefinitions; |
||
| 75 | /** @var array<string, class-string<CalculatorInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 76 | private array $calculators; |
||
| 77 | /** @var array<string, class-string<ExtensionInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 78 | private array $baseExtensions; |
||
| 79 | /** @var array<string, class-string<ExtensionInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 80 | private array $defaultExtensions; |
||
| 81 | /** @var array<string, class-string<ExtensionInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 82 | private array $complementaryExtensions; |
||
| 83 | |||
| 84 | 3 | public function __construct() |
|
| 85 | { |
||
| 86 | 3 | $this->calculators = [ |
|
| 87 | 3 | EanCalculatorInterface::class => EanCalculator::class, |
|
| 88 | 3 | IbanCalculatorInterface::class => IbanCalculator::class, |
|
| 89 | 3 | IsbnCalculatorInterface::class => IsbnCalculator::class, |
|
| 90 | 3 | LuhnCalculatorInterface::class => LuhnCalculator::class, |
|
| 91 | 3 | ]; |
|
| 92 | |||
| 93 | 3 | $this->coreDefinitions = [ |
|
| 94 | 3 | RandomizerInterface::class => Randomizer::class, |
|
| 95 | 3 | ReplacerInterface::class => Replacer::class, |
|
| 96 | 3 | TransliteratorInterface::class => Transliterator::class, |
|
| 97 | 3 | ]; |
|
| 98 | |||
| 99 | 3 | $this->baseExtensions = [ |
|
| 100 | 3 | CoordinatesExtensionInterface::class => Coordinates::class, |
|
| 101 | 3 | CountryExtensionInterface::class => Country::class, |
|
| 102 | 3 | DateTimeExtensionInterface::class => DateTime::class, |
|
| 103 | 3 | EnumExtensionInterface::class => Enum::class, |
|
| 104 | 3 | HashExtensionInterface::class => Hash::class, |
|
| 105 | 3 | LanguageExtensionInterface::class => Language::class, |
|
| 106 | 3 | LoremExtensionInterface::class => Lorem::class, |
|
| 107 | 3 | NumberExtensionInterface::class => Number::class, |
|
| 108 | 3 | StringsExtensionInterface::class => Strings::class, |
|
| 109 | 3 | ]; |
|
| 110 | |||
| 111 | 3 | $this->defaultExtensions = [ |
|
| 112 | 3 | PersonExtensionInterface::class => Person::class, |
|
| 113 | 3 | InternetExtensionInterface::class => Internet::class, |
|
| 114 | 3 | ]; |
|
| 115 | |||
| 116 | 3 | $this->complementaryExtensions = [ |
|
| 117 | 3 | AddressExtensionInterface::class => Address::class, |
|
| 118 | 3 | BarcodeExtensionInterface::class => Barcode::class, |
|
| 119 | 3 | BiasedExtensionInterface::class => Biased::class, |
|
| 120 | 3 | BloodExtensionInterface::class => Blood::class, |
|
| 121 | 3 | ColorExtensionInterface::class => Color::class, |
|
| 122 | 3 | CompanyExtensionInterface::class => Company::class, |
|
| 123 | 3 | FileExtensionInterface::class => File::class, |
|
| 124 | 3 | PaymentExtensionInterface::class => Payment::class, |
|
| 125 | 3 | PhoneNumberExtensionInterface::class => PhoneNumber::class, |
|
| 126 | 3 | TextExtensionInterface::class => Text::class, |
|
| 127 | 3 | UserAgentExtensionInterface::class => UserAgent::class, |
|
| 128 | 3 | VersionExtensionInterface::class => Version::class, |
|
| 129 | 3 | ]; |
|
| 130 | } |
||
| 131 | |||
| 132 | /** @return array<string, class-string<ExtensionInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 133 | 3 | public function baseExtensions(): array |
|
| 134 | { |
||
| 135 | 3 | return $this->baseExtensions; |
|
| 136 | } |
||
| 137 | |||
| 138 | /** @return array<string, class-string<ExtensionInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 139 | 2 | public function defaultExtensions(): array |
|
| 140 | { |
||
| 141 | 2 | return $this->defaultExtensions; |
|
| 142 | } |
||
| 143 | |||
| 144 | /** @return array<string, class-string<ExtensionInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 145 | 1 | public function complementaryExtensions(): array |
|
| 146 | { |
||
| 147 | 1 | return $this->complementaryExtensions; |
|
| 148 | } |
||
| 149 | |||
| 150 | /** @return array<string, class-string<CalculatorInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 151 | 1 | public function calculators(): array |
|
| 152 | { |
||
| 153 | 1 | return $this->calculators; |
|
| 154 | } |
||
| 155 | |||
| 156 | /** @return array<string, class-string<DefinitionInterface>> */ |
||
|
0 ignored issues
–
show
|
|||
| 157 | 3 | public function coreDefinitions(): array |
|
| 158 | { |
||
| 159 | 3 | return $this->coreDefinitions; |
|
| 160 | } |
||
| 161 | } |
||
| 162 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths