Property | Type | Description | |
---|---|---|---|
$dataAttribute | name of the transaction entity attribute, which should be used to store serialized data. |
Method | Description | |
---|---|---|
getSerializer ( ) : yii2tech\balance\SerializerInterface | ||
setSerializer ( yii2tech\balance\SerializerInterface | array | string $serializer ) |
Method | Description | |
---|---|---|
createSerializer ( string | array $config ) : yii2tech\balance\SerializerInterface | Creates serializer from given configuration. | |
serializeAttributes ( array $attributes, array $allowedAttributes ) : array | Processes attributes to be saved in persistent storage, serializing the ones not allowed for direct storage. | |
unserializeAttributes ( array $attributes ) : array | Processes the raw entity attributes from the persistent storage, converting serialized data into actual attributes list. |
protected createSerializer ( string | array $config ) : yii2tech\balance\SerializerInterface | ||
$config | string | array | serializer configuration. |
return | yii2tech\balance\SerializerInterface | serializer instance |
public getSerializer ( ) : yii2tech\balance\SerializerInterface | ||
return | yii2tech\balance\SerializerInterface | serializer instance |
public setSerializer ( yii2tech\balance\SerializerInterface | array | string $serializer ) | ||
$serializer | yii2tech\balance\SerializerInterface | array | string | serializer to be used |
protected unserializeAttributes ( array $attributes ) : array | ||
$attributes | array | raw attribute values from persistent storage. |
return | array | actual attribute values |