Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 229dc4c

Browse files
committed
Added missing properties
1 parent 834daf0 commit 229dc4c

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

src/UserRepository/Htpasswd.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class Htpasswd implements UserRepositoryInterface
1919
{
2020
use UserTrait;
2121

22+
/**
23+
* @var string
24+
*/
25+
private $filename;
26+
2227
/**
2328
* @throws Exception\InvalidConfigException
2429
*/

src/UserRepository/PdoDatabase.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ class PdoDatabase implements UserRepositoryInterface
2020
use UserTrait;
2121

2222
/**
23-
* Constructor
23+
* @var PDO
2424
*/
25+
private $pdo;
26+
27+
/**
28+
* @var array
29+
*/
30+
private $config;
31+
2532
public function __construct(PDO $pdo, array $config)
2633
{
2734
$this->pdo = $pdo;

src/UserRepository/UserTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ trait UserTrait
1717
protected function generateUser(string $username, string $role) : UserInterface
1818
{
1919
return new class($username, $role) implements UserInterface {
20+
private $username;
21+
private $role;
22+
2023
public function __construct($username, $role)
2124
{
2225
$this->username = $username;

0 commit comments

Comments
 (0)