Cache\Encryption\EncryptedItemDecorator::transform PHP 메소드

transform() 개인적인 메소드

Transfrom value back to it orginal type.
private transform ( array $item ) : mixed
$item array
리턴 mixed
    private function transform(array $item)
    {
        if ($item['type'] === 'object') {
            return unserialize($item['value']);
        }
        $value = $item['value'];
        settype($value, $item['type']);
        return $value;
    }