| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | public static function build($cache = null, array $cacheConfig = []) |
||
| 30 | { |
||
| 31 | $version = ClientInterface::VERSION; |
||
|
|
|||
| 32 | |||
| 33 | switch ($version[0]) { |
||
| 34 | case '5': |
||
| 35 | return new Google_AuthHandler_Guzzle5AuthHandler($cache, $cacheConfig); |
||
| 36 | case '6': |
||
| 37 | return new Google_AuthHandler_Guzzle6AuthHandler($cache, $cacheConfig); |
||
| 38 | default: |
||
| 39 | throw new Exception('Version not supported'); |
||
| 40 | } |
||
| 43 |
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.