Last active
December 7, 2020 01:02
-
-
Save kurozumi/a8047858688a0beb8443947d444c21ba to your computer and use it in GitHub Desktop.
シルバー会員
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is part of CustomerType | |
* | |
* Copyright(c) Akira Kurozumi <[email protected]> | |
* | |
* 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 Silver | |
* @package Plugin\CustomerType\Service\Customer\Type | |
* | |
* トータルの購入金額が1000円以上かつ5000円未満の場合はシルバー会員 | |
*/ | |
class Silver extends AbstractType | |
{ | |
public function verify(Customer $customer): bool | |
{ | |
return $customer->getBuyTotal() >= 1000 && $customer->getBuyTotal() < 5000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment