| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 92.31% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ProviderFactory |
||
| 9 | { |
||
| 10 | /* |
||
| 11 | * Create the new OAuth1Interface instance based on the provider config. |
||
| 12 | * |
||
| 13 | * @param \Risan\OAuth1\Provider\ProviderInterface $provider |
||
| 14 | * @param array $config |
||
| 15 | * |
||
| 16 | * @return \Risan\OAuth1\OAuth1Interface |
||
| 17 | */ |
||
| 18 | 2 | public static function create(ProviderInterface $provider, array $config) |
|
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | /* |
||
| 27 | * Dynamically handle the OAuth1Interface instance creation. |
||
| 28 | * |
||
| 29 | * @param string $name |
||
| 30 | * @param array $arguments |
||
| 31 | * |
||
| 32 | * @return \Risan\OAuth1\OAuth1Interface |
||
| 33 | * @throws \InvalidArgumentException |
||
| 34 | */ |
||
| 35 | 4 | public static function __callStatic($name, array $arguments) |
|
| 54 |