Cart\Cart::restoreCheckType PHP Method

restoreCheckType() private method

Check the data to be restored is of the correct type.
private restoreCheckType ( mixed $data )
$data mixed
    private function restoreCheckType($data)
    {
        if ($data === false) {
            throw new CartRestoreException('Saved cart state is unserializable.');
        }
        if (!is_array($data)) {
            throw new CartRestoreException('Unserialized data is not an array.');
        }
    }