| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class LinkedInConnectionFactory implements VendorConnectionFactory |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $permissions; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $permissions |
||
| 25 | */ |
||
| 26 | 1 | public function __construct($permissions = 'r_basicprofile,r_emailaddress') |
|
| 29 | 1 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $clientId the client id which can be generated at the third party portal |
||
| 33 | * @param string $clientSecret this can be found similar to the clientId |
||
| 34 | * @param string $callbackUrl the url to callback after a third party auth attempt |
||
| 35 | * @return VendorConnection |
||
| 36 | */ |
||
| 37 | 1 | public function get($clientId, $clientSecret, $callbackUrl) |
|
| 45 |