123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
-
-
- namespace App\Http\DBO;
-
-
- use Illuminate\Database\Eloquent\Model;
-
- class UserDBO extends AbstractModel
- {
-
-
- private $id;
-
-
-
- private $name;
-
-
-
- function jsonSerialize()
- {
- return [
- 'id' => $this->id,
- 'name' => $this->name
- ];
- }
-
-
-
- public function setId($id)
- {
- $this->id = $id;
- }
-
-
-
- public function getId()
- {
- return $this->id;
- }
-
-
-
- public function setName($name)
- {
- $this->name = $name;
- }
-
-
-
- public function getName()
- {
- return $this->name;
- }
- }
|