source/Core/Session.php
protected function isSerializedBasketValid($serializedBasket)
    {
        $basketClass = get_class(oxNew(Basket::class));
        $basketItemClass = get_class(oxNew(BasketItem::class));
        $priceClass = get_class(oxNew(\OxidEsales\Eshop\Core\Price::class));
        $priceListClass = get_class(oxNew(\OxidEsales\Eshop\Core\PriceList::class));
        $userClass = get_class(oxNew(User::class));

        return $serializedBasket &&
            $this->isClassInSerializedObject($serializedBasket, $basketClass) &&
            $this->isClassInSerializedObject($serializedBasket, $basketItemClass) &&
            $this->isClassOrNullInSerializedObjectAfterField($serializedBasket, "oPrice", $priceClass) &&
            $this->isClassOrNullInSerializedObjectAfterField($serializedBasket, "oProductsPriceList", $priceListClass) &&
            $this->isClassOrNullInSerializedObjectAfterField($serializedBasket, "oUser", $userClass);
    }
protected function isSerializedBasketValid($serializedBasket)
    {
        $basketClass = get_class(oxNew(Basket::class));
        $basketItemClass = get_class(oxNew(BasketItem::class));
        $priceClass = get_class(oxNew(\OxidEsales\Eshop\Core\Price::class));
        $priceListClass = get_class(oxNew(\OxidEsales\Eshop\Core\PriceList::class));
        $userClass = get_class(oxNew(User::class));

        return $serializedBasket &&
            $this->isClassInSerializedObject($serializedBasket, $basketClass) &&
            $this->isClassInSerializedObject($serializedBasket, $basketItemClass) &&
            $this->isClassOrNullInSerializedObjectAfterField($serializedBasket, "oPrice", $priceClass) &&
            $this->isClassOrNullInSerializedObjectAfterField($serializedBasket, "oProductsPriceList", $priceListClass) &&
            $this->isClassOrNullInSerializedObjectAfterField($serializedBasket, "oUser", $userClass);
    }
protected function isSerializedBasketValid ( $ serializedBasket ) { $ basketClass = get_class ( oxNew ( Basket :: class ) ) ; $ basketItemClass = get_class ( oxNew ( BasketItem :: class ) ) ; $ priceClass = get_class ( oxNew ( \ OxidEsales \ Eshop \ Core \ Price :: class ) ) ; $ priceListClass = get_class ( oxNew ( \ OxidEsales \ Eshop \ Core \ PriceList :: class ) ) ; $ userClass = get_class ( oxNew ( User :: class ) ) ; return $ serializedBasket && $ this -> isClassInSerializedObject ( $ serializedBasket , $ basketClass ) && $ this -> isClassInSerializedObject ( $ serializedBasket , $ basketItemClass ) && $ this -> isClassOrNullInSerializedObjectAfterField ( $ serializedBasket , "oPrice" , $ priceClass ) && $ this -> isClassOrNullInSerializedObjectAfterField ( $ serializedBasket , "oProductsPriceList" , $ priceListClass ) && $ this -> isClassOrNullInSerializedObjectAfterField ( $ serializedBasket , "oUser" , $ userClass ) ; }
True if given serialized object is constructed with compatible classes.

@param string $serializedBasket
@return bool
True if given serialized object is constructed with compatible classes .