MAPG-235 refactor: renamed fields in challenge related tables
This commit is contained in:
1 parent
7a1674fdd0
commit
7792f1c3ff
8 files changed
+36
-38
No files matched your search
@@ -6,13 +6,13 @@ class Challenge extends Model
|
||||
{
|
||||
protected static string $table = 'challenges';
|
||||
|
||||
protected static array $fields = ['token', 'timer_sec', 'no_move', 'no_pan', 'no_zoom', 'created'];
|
||||
protected static array $fields = ['token', 'time_limit', 'no_move', 'no_pan', 'no_zoom', 'created'];
|
||||
|
||||
protected static array $relations = [];
|
||||
|
||||
private int $token;
|
||||
|
||||
private ?int $timerSec = null;
|
||||
private ?int $timeLimit = null;
|
||||
|
||||
private bool $noMove = false;
|
||||
|
||||
@@ -27,10 +27,10 @@ class Challenge extends Model
|
||||
$this->token = $token;
|
||||
}
|
||||
|
||||
public function setTimerSec(?int $timerSec): void
|
||||
public function setTimeLimit(?int $timeLimit): void
|
||||
{
|
||||
if(isset($timerSec)) {
|
||||
$this->timerSec = $timerSec;
|
||||
if(isset($timeLimit)) {
|
||||
$this->timeLimit = $timeLimit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,9 +64,9 @@ class Challenge extends Model
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
public function getTimerSec(): ?int
|
||||
public function getTimeLimit(): ?int
|
||||
{
|
||||
return $this->timerSec;
|
||||
return $this->timeLimit;
|
||||
}
|
||||
|
||||
public function getNoMove(): bool
|
||||
|
||||
Reference in new issue
Block a user