- <?php
- /*
-  * This file is part of EC-CUBE
-  *
-  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
-  *
-  * http://www.ec-cube.co.jp/
-  *
-  * For the full copyright and license information, please view the LICENSE
-  * file that was distributed with this source code.
-  */
- namespace Plugin\Noshidelivery\Form\Type\Master;
- use Doctrine\ORM\EntityRepository;
- use Eccube\Form\Type\MasterType;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\OptionsResolver\OptionsResolver;
- /**
-  * Class NoshideliveryKindType
-  */
- class NoshideliveryKindType extends AbstractType
- {
-     /**
-      * {@inheritdoc}
-      */
-     public function configureOptions(OptionsResolver $resolver)
-     {
-         $resolver->setDefaults([
-             'class' => 'Plugin\Noshidelivery\Entity\NoshideliveryKind',
-             'placeholder' => 'common.select__unspecified',
-             'query_builder' => function (EntityRepository $er) {
-                 return $er->createQueryBuilder('c')
-                     ->orderBy('c.sort_no', 'DESC');
-             },
-         ]);
-     }
-     /**
-      * {@inheritdoc}
-      */
-     public function getBlockPrefix()
-     {
-         return 'noshidelivery_kind';
-     }
-     /**
-      * {@inheritdoc}
-      */
-     public function getParent()
-     {
-         return MasterType::class;
-     }
- }
-