-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: eliminate data array with object
- Loading branch information
Showing
5 changed files
with
123 additions
and
29 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
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
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?php | ||
|
||
namespace phpMyFAQ\Entity; | ||
|
||
class AdminLog | ||
{ | ||
private int $id; | ||
|
||
private int $time; | ||
|
||
private int $userId; | ||
|
||
private string $text; | ||
|
||
private string $ip; | ||
public function getId(): int | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function setId(int $id): AdminLog | ||
{ | ||
$this->id = $id; | ||
return $this; | ||
} | ||
|
||
public function getTime(): int | ||
{ | ||
return $this->time; | ||
} | ||
|
||
public function setTime(int $time): AdminLog | ||
{ | ||
$this->time = $time; | ||
return $this; | ||
} | ||
|
||
public function getUserId(): int | ||
{ | ||
return $this->userId; | ||
} | ||
|
||
public function setUserId(int $userId): AdminLog | ||
{ | ||
$this->userId = $userId; | ||
return $this; | ||
} | ||
|
||
public function getText(): string | ||
{ | ||
return $this->text; | ||
} | ||
|
||
public function setText(string $text): AdminLog | ||
{ | ||
$this->text = $text; | ||
return $this; | ||
} | ||
|
||
public function getIp(): string | ||
{ | ||
return $this->ip; | ||
} | ||
|
||
public function setIp(string $ip): AdminLog | ||
{ | ||
$this->ip = $ip; | ||
return $this; | ||
} | ||
} |
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
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