<?php

namespace lib\Configs;

use lib\Core\Config as Core;

class Config extends Core
{
  public function __construct()
  {
    parent::__construct();
  } //
  public function getSiteInfo(string $sitekey): array|null
  {
    $siteinfo = [];
    switch ($sitekey) {
      case 'dbms.prime-idc.jp':
        $siteinfo = [
          "id"                   => "PRIMEIDC",
          "domain"               => "dbms.prime-idc.jp",
          "name"                 => "PrimeIDC",
          "email"                => "primeidc.jp@gmail.com",
          "totalcount_types"     => ["normal", "defence", "solo", "substitution", "test"],
          "totalcount_customers" => [
            "idcjp"    => "Client_Code NOT IN ('C116','C012','C636')",
            "winidc"   => "Client_Code='C116'",
            "gamewing" => "Client_Code='C012'",
            "GDIDC"    => "Client_Code='C636'",
          ],
          "banks"                => [
            ["id" => "331301-04-217387", "name" => '국민은행', "owner" => "주)듀나미스"],
          ],
        ];
        break;
      case 'dbms.itsolution-idc.jp':
        $siteinfo = [
          "id"                   => "ITSOLUTION",
          "domain"               => "dbms.itsolution-idc.jp",
          "name"                 => "Itsolution",
          "email"                => "support@itsoution-idc.jp",
          "totalcount_types"     => ["normal", "defence", "solo", "substitution", "test"],
          "totalcount_customers" => [
            "winidc" => "Client_Code NOT IN ('C237')",
            "bosch"  => "Client_Code='C237'",
          ],
          "banks"                => [
            ["id" => "9002-1932-1654-1", "name" => '새마을금고', "owner" => "주식회사 르호봇"],
            ["id" => "351-0995-6751-73", "name" => '농협', "owner" => "주식회사 르호봇"],
          ],
        ];
        break;
      case 'dbms.gdidc.jp':
        $siteinfo = [
          "id"                   => "GDIDC",
          "domain"               => "dbms.gdidc.jp",
          "name"                 => "GDIDC",
          "email"                => "support@gdidc.jp",
          "totalcount_types"     => ["normal", "defence", "solo", "substitution", "test"],
          "totalcount_customers" => [
            "gdidc" => "",
          ],
          "banks"                => [
            ["id" => "1005-204-100758", "name" => '우리은행', "owner" => " (주)브엘라해로이"],
          ],
        ];
        break;
      default:
        $siteinfo = null;
        break;
    }
    return $siteinfo;
  }
}
