src/ShopifyApp/Services/ShopSession.php
/**
     * Checks if the package has everything it needs in session (compare).
     *
     * @param ShopDomain $shopDomain The shop to compare validity to.
     *
     * @return bool
     */
Checks if the package has everything it needs in session (compare).
@param ShopDomain $shopDomain The shop to compare validity to.

@return bool
Checks if the package has everything it needs in session ( compare ) . @param ShopDomain $shopDomain The shop to compare validity to . @return bool
public function isValidCompare(ShopDomain $shopDomain): bool
    {
        return $this->isValid() && $shopDomain->isSame($this->getShop()->getDomain());
    }
public function isValidCompare ( ShopDomain $ shopDomain ) : bool { return $ this -> isValid ( ) && $ shopDomain -> isSame ( $ this -> getShop ( ) -> getDomain ( ) ) ; }
Checks if the package has everything it needs in session (compare).
Checks if the package has everything it needs in session ( compare ) .
// Ensure domains match