This repository has been archived by the owner on Jan 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding test + clear code + functions racc
- Loading branch information
1 parent
c5f3675
commit 9fdc1b9
Showing
6 changed files
with
339 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
vendor/ | ||
composer.lock | ||
tests | ||
.idea/ | ||
.idea |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ | |
"psr-4": { | ||
"STAILEUAccounts\\": "src/" | ||
} | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^6.5" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
<?php | ||
<?php | ||
|
||
namespace STAILEUAccounts; | ||
namespace STAILEUAccounts; | ||
|
||
class Avatar{ | ||
class Avatar | ||
{ | ||
|
||
/** | ||
* @var string $base64 The base64 avatar | ||
*/ | ||
private $base64; | ||
/** | ||
* @var string $base64 The base64 avatar | ||
*/ | ||
private $base64; | ||
|
||
/** | ||
* @var string $url The avatar url | ||
*/ | ||
private $url; | ||
/** | ||
* @var string $url The avatar url | ||
*/ | ||
private $url; | ||
|
||
public function __construct($base64, $url){ | ||
$this->base64 = $base64; | ||
$this->url = $url; | ||
} | ||
public function __construct($base64, $url) | ||
{ | ||
$this->base64 = $base64; | ||
$this->url = $url; | ||
} | ||
|
||
public function getUrl(){ | ||
return $this->url; | ||
} | ||
public function getUrl() | ||
{ | ||
return $this->url; | ||
} | ||
|
||
public function getBase64(){ | ||
return $this->base64; | ||
} | ||
public function getBase64() | ||
{ | ||
return $this->base64; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
<?php | ||
<?php | ||
|
||
namespace STAILEUAccounts; | ||
namespace STAILEUAccounts; | ||
|
||
class Login{ | ||
class Login | ||
{ | ||
|
||
private $CSA; | ||
private $tfa; | ||
private $tfa_token; | ||
private $d; | ||
private $CSA; | ||
private $tfa; | ||
private $TFAToken; | ||
|
||
public function __construct($CSA = null, $tfa = false, $tfa_token = null){ | ||
$this->CSA = $CSA; | ||
$this->tfa = $tfa; | ||
$this->tfa_token = $tfa_token; | ||
} | ||
public function __construct($CSA = NULL, $tfa = false, $TFAToken = NULL) | ||
{ | ||
$this->CSA = $CSA; | ||
$this->tfa = $tfa; | ||
$this->TFAToken = $TFAToken; | ||
} | ||
|
||
public function isUsingTfa(){ | ||
return $this->tfa; | ||
} | ||
public function isUsingTfa() | ||
{ | ||
return $this->tfa; | ||
} | ||
|
||
public function getCSAToken(){ | ||
return $this->CSA; | ||
} | ||
public function getCSAToken() | ||
{ | ||
return $this->CSA; | ||
} | ||
|
||
public function getTFAToken(){ | ||
return $this->tfa_token; | ||
} | ||
public function getTFAToken() | ||
{ | ||
return $this->TFAToken; | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.