1.1.0
Added
- Added index for fields in "transfers" table: ['from_type', 'from_id', 'refund'].
- Added index for fields in "transfers" table: ['to_type', 'to_id', 'refund'].
- In the table "transactions" added to the type index.
- Exception ProductEnded
- Method public paid(Product $product): ?Transfer.
- Method public canBuy(Customer $customer): bool.
- Static balance caching. Also the description for what it is necessary.
Changed
- In the table "transactions" is deleted the index of the field "uuid" and added a unique index.
- In the table "transfers" is deleted the index of the field "uuid" and added a unique index.
- Method
pay
began to check the possibility of buying.
Removed
- public resetBalance(): void
What's Changed
- add paid by @rez1dent3 in #4
- add canBuy by @rez1dent3 in #5
- update method pay by @rez1dent3 in #6
- Scrutinizer Auto-Fixes by @scrutinizer-auto-fixer in #7
Full Changelog: 1.0.0...1.1.0