Download the PHP package rocketfellows/cz-vat-number-format-validators-config without Composer
On this page you can find all versions of the php package rocketfellows/cz-vat-number-format-validators-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cz-vat-number-format-validators-config
Czech Republic vat number format validators config
This package provides a preconfigured configuration class for vat number format validators for Czech Republic country. Is an extension of the package https://github.com/rocketfellows/specific-country-vat-number-format-validators-config.
Installation
Dependencies
- https://github.com/rocketfellows/specific-country-vat-number-format-validators-config v1.0.0;
- https://github.com/rocketfellows/cz-vat-format-validator v1.0.0;
References
- https://github.com/rocketfellows/country-vat-format-validator-interface
- https://github.com/arslanim/iso-standard-3166
List of package components
- rocketfellows\CZVatNumberFormatValidatorsConfig\CZVatNumberFormatValidatorsConfig - preconfigured configuration class for vat number format validators for Czech Republic country;
CZVatNumberFormatValidatorsConfig description
A configuration class that provides a match for the vat number format validators for the country Czech Republic.
Class interface:
- getCountry - returns Czech Republic Country instance;
- getValidators - returns validators tuple
When initializing the default configuration, the getValidators function returns a tuple with a single validator - an instance of CZVatFormatValidator.
You can override the default validator by initializing the configuration class object with a new default validator through the first parameter of the class constructor. Attention - validator must implement interface CountryVatFormatValidatorInterface.
You can add additional validators to the default validator via the second constructor parameter.
Attention - additional validators parameter must be instance of tuple CountryVatFormatValidators. And each additional validator must implement interface CountryVatFormatValidatorInterface.
You can also completely rebuild the configuration by passing the default validator and a tuple of additional validators to the config class constructor.
More use case examples can be found in the package's unit tests.
Contributing
Welcome to pull requests. If there is a major changes, first please open an issue for discussion.
Please make sure to update tests as appropriate.
All versions of cz-vat-number-format-validators-config with dependencies
rocketfellows/specific-country-vat-number-format-validators-config Version 1.0.0
rocketfellows/cz-vat-format-validator Version 1.0.0