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