Skip to content

Commit

Permalink
README更新
Browse files Browse the repository at this point in the history
  • Loading branch information
kurozumi committed Nov 25, 2021
1 parent a6d8cd5 commit aa47ae4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ class Rank implements RankInterface
*/
public function decide(Customer $customer): void
{
// 会員グループをクリアする
$customer->getGroups()->clear();

// 対象の会員ブループが見つかったら登録
$groups = $this->getGroups($customer);
if ($groups->count() > 0) {
/** @var Group $group */
Expand Down

0 comments on commit aa47ae4

Please sign in to comment.