1 <?php
2
3 namespace wataridori\ChatworkSDK;
4
5 class ChatworkSDK
6 {
7 8 9
10 protected static $apiKey = '';
11 protected static $sslVerificationMode = true;
12
13 public function __construct($apiKey, $sslVerificationMode = true)
14 {
15 self::setApiKey($apiKey);
16 self::setSslVerificationMode($sslVerificationMode);
17 }
18
19 20 21 22 23
24 public static function getApiKey()
25 {
26 return self::$apiKey;
27 }
28
29 30 31 32 33
34 public static function setApiKey($apiKey)
35 {
36 self::$apiKey = $apiKey;
37 }
38
39 40 41 42 43
44 public static function getSslVerificationMode()
45 {
46 return self::$sslVerificationMode;
47 }
48
49 50 51 52 53
54 public static function setSslVerificationMode($sslVerificationMode)
55 {
56 self::$sslVerificationMode = $sslVerificationMode;
57 }
58 }
59