Skip to content

Instantly share code, notes, and snippets.

View kurozumi's full-sized avatar

kurozumi kurozumi

View GitHub Profile
@kurozumi
kurozumi / CustomerTypeExtension.php
Last active December 8, 2020 01:45
会員タイプのインターフェースが実装されたクラスに自動タグ付け
<?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.
@kurozumi
kurozumi / CustomerTypeContext.php
Last active December 8, 2020 01:58
会員ランクを取得するコンテキスト
<?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.
@kurozumi
kurozumi / Gold.php
Last active December 7, 2020 01:03
ゴールド会員
<?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.
@kurozumi
kurozumi / Silver.php
Last active December 7, 2020 01:02
シルバー会員
<?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.
@kurozumi
kurozumi / Regular.php
Last active December 7, 2020 01:02
レギュラー会員
<?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.
@kurozumi
kurozumi / AbstractType.php
Last active December 8, 2020 01:42
Strategyパターンの継承クラス
<?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.
@kurozumi
kurozumi / CustomerTypeInterface.php
Last active December 7, 2020 00:58
会員ランクを決定するStrategy(会員タイプのインターフェース)
<?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.
@kurozumi
kurozumi / CustomerTypeRepository.php
Created December 6, 2020 04:42
会員ランクを管理するエンティティのリポジトリ
<?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.
@kurozumi
kurozumi / CustomerType.php
Created December 6, 2020 04:38
会員ランクを管理するエンティティ
<?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.
@kurozumi
kurozumi / PostController.php
Created December 4, 2020 06:32
コントローラーでワードプレスの記事一覧を取得
<?php
namespace Customize\Controller;
use Customize\Service\WordPress\AzumiService;
use Eccube\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;