PHP yii2tech\balance Namespace

Interfaces

Name Description
ManagerInterface ManagerInterface defines balance manager interface.
SerializerInterface SerializerInterface defines serializer interface.

Сlasses

Name Description
CallbackSerializer CallbackSerializer serializes data via custom PHP callback.
JsonSerializer JsonSerializer serializes data in JSON format.
Manager Manager is a base class for the balance managers.
ManagerActiveRecord ManagerActiveRecord is a balance manager, which uses ActiveRecord classes for data storage.
ManagerDb ManagerDb is a balance manager, which uses relational database as data storage.
ManagerDbTransaction ManagerDbTransaction allows performing balance operations as a single Database transaction.
ManagerMongoDb ManagerMongoDb is a balance manager, which uses MongoDB as data storage.
PhpSerializer PhpSerializer uses native PHP `serialize()` and `unserialize()` functions for the serialization.
TransactionEvent TransactionEvent represents the event parameter used for an balance transaction related event.

Traits

Name Description
ManagerDataSerializeTrait ManagerDataSerializeTrait provides ability to serialize extra attributes into the single field.