-
-
Notifications
You must be signed in to change notification settings - Fork 287
Expand file tree
/
Copy pathSerializerInterface.php
More file actions
33 lines (27 loc) · 628 Bytes
/
SerializerInterface.php
File metadata and controls
33 lines (27 loc) · 628 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yii\queue\serializers;
use yii\queue\JobInterface;
/**
* Serializer Interface.
*
* @author Roman Zhuravlev <[email protected]>
*/
interface SerializerInterface
{
/**
* @param JobInterface|mixed $job
* @return string
*/
public function serialize($job): string;
/**
* @param string $serialized
* @return JobInterface|array|mixed
*/
public function unserialize(string $serialized);
}