Class yii\queue\serializers\JsonSerializer

Inheritanceyii\queue\serializers\JsonSerializer » yii\base\BaseObject
Implementsyii\queue\serializers\SerializerInterface

Class Json

Property Details

$classKey public property
public string $classKey 'class'
$options public property
public integer $options 0

Method Details

fromArray() protected method

protected mixed fromArray ( $data )
$data array
serialize() public method

public string serialize ( $job )
$job yii\queue\JobInterface|mixed
toArray() protected method

protected array|mixed toArray ( $data )
$data mixed
throws \yii\base\InvalidConfigException
unserialize() public method

public yii\queue\JobInterface unserialize ( $serialized )
$serialized string