MAKS\AmqpAgent\Helper\Serializer::deserialize
Deserializes the passed or registered data. When no parameters are passed, it uses the registered ones.
Signature
public function deserialize([string
$data = NULL,
[string
$type = NULL,
[bool
$strict = NULL]]] )
Parameters
$data
—
string
- [optional] The data to unserialize.
$type
—
string
- [optional] The type of unserialization.
$strict
—
bool
- [optional] Whether or not to assert that no errors have occurred while executing unserialization functions.
Returns
- mixed
- A PHP type on success or false or null on failure.
Errors/Exceptions
-
SerializerViolationException
Test Coverage
Information
- Coverage: 1/1 Lines (100%)
- Tests: 1
- Passed: 1 (100%)
Tests
- [ PASSED ] — MAKS\AmqpAgent\Tests\Helper\SerializerTest::testSerializerWhenUnserializeMethodIsCalled