├── .gitignore ├── .travis.yml ├── README.md ├── composer.json ├── phpunit.xml ├── src └── Vouchers │ ├── Bag.php │ ├── Bag │ └── Collection.php │ ├── Exceptions │ ├── ImmutableData.php │ ├── NoValidVouchers.php │ ├── ValidationCallbackFail.php │ ├── VoucherCodeInvalid.php │ └── VoucherValidationFailed.php │ ├── Voucher.php │ └── Voucher │ ├── Code │ ├── Generator.php │ └── GeneratorInterface.php │ └── Model.php └── tests └── Vouchers ├── BagTest.php ├── ModelTest.php ├── ValidationTest.php ├── VoucherTest.php └── lib └── TestGenerator.php /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/* 2 | *.lock 3 | index.php 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/.travis.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Vouchers/Bag.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Bag.php -------------------------------------------------------------------------------- /src/Vouchers/Bag/Collection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Bag/Collection.php -------------------------------------------------------------------------------- /src/Vouchers/Exceptions/ImmutableData.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Exceptions/ImmutableData.php -------------------------------------------------------------------------------- /src/Vouchers/Exceptions/NoValidVouchers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Exceptions/NoValidVouchers.php -------------------------------------------------------------------------------- /src/Vouchers/Exceptions/ValidationCallbackFail.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Exceptions/ValidationCallbackFail.php -------------------------------------------------------------------------------- /src/Vouchers/Exceptions/VoucherCodeInvalid.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Exceptions/VoucherCodeInvalid.php -------------------------------------------------------------------------------- /src/Vouchers/Exceptions/VoucherValidationFailed.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Exceptions/VoucherValidationFailed.php -------------------------------------------------------------------------------- /src/Vouchers/Voucher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Voucher.php -------------------------------------------------------------------------------- /src/Vouchers/Voucher/Code/Generator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Voucher/Code/Generator.php -------------------------------------------------------------------------------- /src/Vouchers/Voucher/Code/GeneratorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Voucher/Code/GeneratorInterface.php -------------------------------------------------------------------------------- /src/Vouchers/Voucher/Model.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/src/Vouchers/Voucher/Model.php -------------------------------------------------------------------------------- /tests/Vouchers/BagTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/tests/Vouchers/BagTest.php -------------------------------------------------------------------------------- /tests/Vouchers/ModelTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/tests/Vouchers/ModelTest.php -------------------------------------------------------------------------------- /tests/Vouchers/ValidationTest.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Vouchers/VoucherTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/tests/Vouchers/VoucherTest.php -------------------------------------------------------------------------------- /tests/Vouchers/lib/TestGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waxim/vouchers/HEAD/tests/Vouchers/lib/TestGenerator.php --------------------------------------------------------------------------------