PHP Class ManaPHP\Serializer\Adapter\JsonPhp

Inheritance: implements ManaPHP\Serializer\AdapterInterface
显示文件 Open project: manaphp/manaphp

Public Methods

Method Description
_isCanJsonSafely ( mixed $data ) : boolean
deserialize ( string $serialized ) : mixed
serialize ( mixed $data ) : string

Method Details

_isCanJsonSafely() public method

public _isCanJsonSafely ( mixed $data ) : boolean
$data mixed
return boolean

deserialize() public method

public deserialize ( string $serialized ) : mixed
$serialized string
return mixed

serialize() public method

public serialize ( mixed $data ) : string
$data mixed
return string