mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-02-17 22:50:48 +00:00
Add the Config class
Add a Config class for storing configuration values such as the Glassboxx username, password and vendor ID.
This commit is contained in:
parent
4db74ad058
commit
e5268e9707
4 changed files with 78 additions and 1 deletions
40
src/Glassboxx/Config.php
Normal file
40
src/Glassboxx/Config.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace Opdavies\Glassboxx;
|
||||
|
||||
class Config
|
||||
{
|
||||
/** @var int $vendorId */
|
||||
private $vendorId;
|
||||
|
||||
/** @var string $username */
|
||||
private $username;
|
||||
|
||||
/** @var string $password */
|
||||
private $password;
|
||||
|
||||
public function __construct(
|
||||
int $vendorId,
|
||||
string $username,
|
||||
string $password
|
||||
) {
|
||||
$this->password = $password;
|
||||
$this->username = $username;
|
||||
$this->vendorId = $vendorId;
|
||||
}
|
||||
|
||||
public function getPassword(): string
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
public function getUsername(): string
|
||||
{
|
||||
return $this->username;
|
||||
}
|
||||
|
||||
public function getVendorId(): int
|
||||
{
|
||||
return $this->vendorId;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue