-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathSerializerAwareAdapterInterface.php
More file actions
70 lines (62 loc) · 2.1 KB
/
Copy pathSerializerAwareAdapterInterface.php
File metadata and controls
70 lines (62 loc) · 2.1 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* TechDivision\Import\Adapter\SerializerAwareAdapterInterface
*
* PHP version 7
*
* @author Tim Wagner <t.wagner@techdivision.com>
* @copyright 2016 TechDivision GmbH <info@techdivision.com>
* @license https://opensource.org/licenses/MIT
* @link https://github.com/techdivision/import
* @link http://www.techdivision.com
*/
namespace TechDivision\Import\Adapter;
use TechDivision\Import\Serializer\SerializerAwareInterface;
/**
* The interface for all adapters that provides serializer functionality.
*
* @author Tim Wagner <t.wagner@techdivision.com>
* @copyright 2016 TechDivision GmbH <info@techdivision.com>
* @license https://opensource.org/licenses/MIT
* @link https://github.com/techdivision/import
* @link http://www.techdivision.com
*/
interface SerializerAwareAdapterInterface extends SerializerAwareInterface
{
/**
* Extracts the elements of the passed value by exploding them
* with the also passed delimiter.
*
* @param string|null $value The value to extract
* @param string|null $delimiter The delimiter used to extrace the elements
*
* @return array|null The exploded values
*/
public function explode($value = null, $delimiter = null);
/**
* Compacts the elements of the passed value by imploding them
* with the also passed delimiter.
*
* @param array|null $value The values to compact
* @param string|null $delimiter The delimiter use to implode the values
*
* @return string|null The compatected value
*/
public function implode(?array $value = null, $delimiter = null);
/**
* Serializes the elements of the passed array.
*
* @param array|null $unserialized The serialized data
*
* @return string The serialized array
*/
public function serialize(?array $unserialized = null);
/**
* Unserializes the elements of the passed string.
*
* @param string|null $serialized The value to unserialize
*
* @return array The unserialized values
*/
public function unserialize($serialized = null);
}