123456789101112131415161718192021222324252627282930313233343536 |
- <?php
-
-
- namespace App\Http\DAL\Models;
-
- use App\Http\DBO\UserDBO;
- use Illuminate\Database\Eloquent\Model;
-
-
- class User extends AbstractModel
- {
- public function toBusinessModel()
- {
- $user = new UserDBO();
- $user->setId($this->id);
- $user->setName($this->name);
-
- return $user;
- }
- }
|