Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class Password extends Configuration implements Authentication |
||
14 | { |
||
15 | /** |
||
16 | * Username. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $username; |
||
21 | |||
22 | /** |
||
23 | * Password. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $password; |
||
28 | |||
29 | /** |
||
30 | * Constructor. |
||
31 | * |
||
32 | * @param object $configuration Configuration object |
||
33 | * @return void |
||
34 | */ |
||
35 | public function __construct(Configuration $configuration) |
||
36 | { |
||
37 | $this->username = $configuration->get_username(); |
||
38 | $this->password = $configuration->get_password(); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | final public function authenticate($resource) |
||
49 | } |
||
50 | } |
||
52 |