class IdentityMarshaller
@author Ahmed TAILOULOUTE <ahmed.tailouloute@gmail.com>
Hierarchy
- class \Symfony\Component\HttpFoundation\Session\Storage\Handler\IdentityMarshaller implements \Symfony\Component\Cache\Marshaller\MarshallerInterface
Expanded class hierarchy of IdentityMarshaller
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ Handler/ IdentityMarshaller.php, line 19
Namespace
Symfony\Component\HttpFoundation\Session\Storage\HandlerView source
class IdentityMarshaller implements MarshallerInterface {
public function marshall(array $values, ?array &$failed) : array {
foreach ($values as $key => $value) {
if (!\is_string($value)) {
throw new \LogicException(\sprintf('%s accepts only string as data.', __METHOD__));
}
}
return $values;
}
public function unmarshall(string $value) : string {
return $value;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
IdentityMarshaller::marshall | public | function | |
IdentityMarshaller::unmarshall | public | function |