Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Last active December 7, 2020 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurozumi/059d6e81a46f821df1ae8d72debf1605 to your computer and use it in GitHub Desktop.
Save kurozumi/059d6e81a46f821df1ae8d72debf1605 to your computer and use it in GitHub Desktop.
ゴールド会員
<?php
/**
* This file is part of CustomerType
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\CustomerType\Service\Customer\Type;
use Eccube\Entity\Customer;
/**
* Class Gold
* @package Plugin\CustomerType\Service\Customer\Type
*
* トータルの購入金額が5000円以上の場合はゴールド会員
*/
class Gold extends AbstractType
{
public function verify(Customer $customer): bool
{
return $customer->getBuyTotal() >= 5000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment