| 1 | <?php |
||
| 14 | class KeyQueryStringAuthentication implements IAuthentication |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var |
||
| 18 | */ |
||
| 19 | private $user; |
||
| 20 | /** |
||
| 21 | * @var |
||
| 22 | */ |
||
| 23 | private $password; |
||
| 24 | /** |
||
| 25 | * @var null |
||
| 26 | */ |
||
| 27 | private $pessoaId; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var LoginApi |
||
| 31 | */ |
||
| 32 | private $_loginApi; |
||
| 33 | /** |
||
| 34 | * @var null |
||
| 35 | */ |
||
| 36 | private $key; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * KeyQueryStringAuthentication constructor. |
||
| 40 | */ |
||
| 41 | public function __construct($user, $password, $key = null, $pessoaId = null, Client $client) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getAuthorization() |
||
| 66 | |||
| 67 | } |