src/ShopifyApp/Services/ShopSession.php
/**
     * Checks if the package has everything it needs in session.
     *
     * @return bool
     */
Checks if the package has everything it needs in session.
@return bool
Checks if the package has everything it needs in session . @return bool
public function isValid(): bool
    {
        $currentShop = $this->getShop();
        $currentToken = $this->getToken(true);
        $currentDomain = $currentShop->getDomain();
        return !$currentToken->isEmpty() && !$currentDomain->isNull();
    }
public function isValid ( ) : bool { $ currentShop = $ this -> getShop ( ) ; $ currentToken = $ this -> getToken ( true ) ; $ currentDomain = $ currentShop -> getDomain ( ) ; return ! $ currentToken -> isEmpty ( ) && ! $ currentDomain -> isNull ( ) ; }
Checks if the package has everything it needs in session.
Checks if the package has everything it needs in session .