Skip to content

Commit 1fd5740

Browse files
committed
Add redirect and login URLs to Client configuration class.
1 parent 88d87a7 commit 1fd5740

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

src/Config/Client.php

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,46 @@
44

55
class Client
66
{
7+
////////////////////////////// CLASS PROPERTIES \\\\\\\\\\\\\\\\\\\\\\\\\\\\
8+
9+
/** @var string */
10+
private $authorizationPageUrl;
711
/** @var string */
812
private $identifier;
913
/** @var string */
14+
private $loginUrl;
15+
/** @var string */
1016
private $secret;
1117

12-
public function getIdentifier() : string
18+
//////////////////////////// GETTERS AND SETTERS \\\\\\\\\\\\\\\\\\\\\\\\\\\
19+
20+
final public function getIdentifier() : string
1321
{
1422
return $this->identifier;
1523
}
1624

17-
public function getSecret() : string
25+
final public function getSecret() : string
1826
{
1927
return $this->secret;
2028
}
2129

22-
final public function __construct(string $identifier, string $secret)
30+
final public function getAuthorizationPageUrl() : string
31+
{
32+
return $this->authorizationPageUrl;
33+
}
34+
35+
final public function getLoginUrl() : string
36+
{
37+
return $this->loginUrl;
38+
}
39+
40+
//////////////////////////////// PUBLIC API \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
41+
42+
final public function __construct(string $identifier, string $secret, string $authorizationPageUrl = '', string $loginUrl = '')
2343
{
44+
$this->authorizationPageUrl = $authorizationPageUrl;
2445
$this->identifier = $identifier;
46+
$this->loginUrl = $loginUrl;
2547
$this->secret = $secret;
2648
}
2749
}

0 commit comments

Comments
 (0)