public function findOneByEmailAndWebsiteId($email, $websiteId)
    {

        // initialize the params
        $params = array(
            MemberNames::EMAIL      => $email,
            MemberNames::WEBSITE_ID => $websiteId
        );

        // if not, try to load the customer with the passed email and website ID
        $this->customerByEmailAndWebsiteIdStmt->execute($params);
        return $this->customerByEmailAndWebsiteIdStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByEmailAndWebsiteId($email, $websiteId)
    {

        // initialize the params
        $params = array(
            MemberNames::EMAIL      => $email,
            MemberNames::WEBSITE_ID => $websiteId
        );

        // if not, try to load the customer with the passed email and website ID
        $this->customerByEmailAndWebsiteIdStmt->execute($params);
        return $this->customerByEmailAndWebsiteIdStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByEmailAndWebsiteId ( $ email , $ websiteId ) { // initialize the params $ params = array ( MemberNames :: EMAIL => $ email , MemberNames :: WEBSITE_ID => $ websiteId ) ; // if not, try to load the customer with the passed email and website ID $ this -> customerByEmailAndWebsiteIdStmt -> execute ( $ params ) ; return $ this -> customerByEmailAndWebsiteIdStmt -> fetch ( \ PDO :: FETCH_ASSOC ) ; }
Return's the customer with the passed email and website ID.

@param string $email     The email of the customer to return
@param string $websiteId The website ID of the customer to return

@return array|null The customer
Return s the customer with the passed email and website ID .