app/Plugin/ProductDisplayRank4/Repository/ConfigRepository.php line 24

Open in your IDE?
  1. <?php
  2. namespace Plugin\ProductDisplayRank4\Repository;
  3. use Eccube\Repository\AbstractRepository;
  4. use Plugin\ProductDisplayRank4\Entity\Config;
  5. use Symfony\Bridge\Doctrine\RegistryInterface;
  6. /**
  7.  * ConfigRepository
  8.  *
  9.  * This class was generated by the Doctrine ORM. Add your own custom
  10.  * repository methods below.
  11.  */
  12. class ConfigRepository extends AbstractRepository
  13. {
  14.     /**
  15.      * ConfigRepository constructor.
  16.      *
  17.      * @param RegistryInterface $registry
  18.      */
  19.     public function __construct(RegistryInterface $registry)
  20.     {
  21.         parent::__construct($registryConfig::class);
  22.     }
  23.     /**
  24.      * @param int $id
  25.      *
  26.      * @return null|Config
  27.      */
  28.     public function get($id 1)
  29.     {
  30.         return $this->find($id);
  31.     }
  32. }