Class yii\queue\serializers\JsonSerializer
Inheritance | yii\queue\serializers\JsonSerializer » yii\base\BaseObject |
---|---|
Implements | yii\queue\serializers\SerializerInterface |
Class Json
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$classKey | string | yii\queue\serializers\JsonSerializer | |
$options | integer | yii\queue\serializers\JsonSerializer |
Public Methods
Method | Description | Defined By |
---|---|---|
serialize() | yii\queue\serializers\JsonSerializer | |
unserialize() | yii\queue\serializers\JsonSerializer |
Protected Methods
Method | Description | Defined By |
---|---|---|
fromArray() | yii\queue\serializers\JsonSerializer | |
toArray() | yii\queue\serializers\JsonSerializer |
Property Details
Method Details
protected mixed fromArray ( $data ) | ||
$data | array |
public string serialize ( $job ) | ||
$job | yii\queue\JobInterface|mixed |
protected array|mixed toArray ( $data ) | ||
$data | mixed | |
throws | \yii\base\InvalidConfigException |
---|
public yii\queue\JobInterface unserialize ( $serialized ) | ||
$serialized | string |