protected function castLoadedEntry(array $entry)
    {
        $entry['valid_until'] = (int)$entry['valid_until'];
        $entry['outside'] = (int)$entry['outside'];
        $entry['plain'] = (int)$entry['plain'];

        if ((bool)$entry['outside']) {
            return $entry;
        }

        if (!(bool)$entry['plain']) {
            $entry['payload'] = $this->serializer->deserialize($entry['payload']);
            $entry['plain'] = 1;
        }

        return $entry;
    }
protected function castLoadedEntry(array $entry)
    {
        $entry['valid_until'] = (int)$entry['valid_until'];
        $entry['outside'] = (int)$entry['outside'];
        $entry['plain'] = (int)$entry['plain'];

        if ((bool)$entry['outside']) {
            return $entry;
        }

        if (!(bool)$entry['plain']) {
            $entry['payload'] = $this->serializer->deserialize($entry['payload']);
            $entry['plain'] = 1;
        }

        return $entry;
    }
protected function castLoadedEntry ( array $ entry ) { $ entry [ 'valid_until' ] = ( int ) $ entry [ 'valid_until' ] ; $ entry [ 'outside' ] = ( int ) $ entry [ 'outside' ] ; $ entry [ 'plain' ] = ( int ) $ entry [ 'plain' ] ; if ( ( bool ) $ entry [ 'outside' ] ) { return $ entry ; } if ( ! ( bool ) $ entry [ 'plain' ] ) { $ entry [ 'payload' ] = $ this -> serializer -> deserialize ( $ entry [ 'payload' ] ) ; $ entry [ 'plain' ] = 1 ; } return $ entry ; }
Cast the values of an loaded entry.

@param array  $entry

@return array
Cast the values of an loaded entry .