프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$dataAttribute | name of the transaction entity attribute, which should be used to store serialized data. |
메소드 | 설명 | |
---|---|---|
getSerializer ( ) : yii2tech\balance\SerializerInterface | ||
setSerializer ( yii2tech\balance\SerializerInterface | array | string $serializer ) |
메소드 | 설명 | |
---|---|---|
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. |
리턴 | yii2tech\balance\SerializerInterface | serializer instance |
public getSerializer ( ) : yii2tech\balance\SerializerInterface | ||
리턴 | 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. |
리턴 | array | actual attribute values |