123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * Created by PhpStorm.
- * User: adrien.gandarias
- * Date: 08/04/2015
- * Time: 10:10
- */
-
- namespace App\Http\DAL\Models;
-
- use App\Http\DBO\UserDBO;
- use Illuminate\Database\Eloquent\Model;
-
- /**
- * App\Http\DAL\Models\User
- *
- * @property integer $id
- * @property string $name
- * @property \Carbon\Carbon $created_at
- * @property \Carbon\Carbon $updated_at
- * @method static \Illuminate\Database\Query\Builder|\App\Http\DAL\Models\User whereId($value)
- * @method static \Illuminate\Database\Query\Builder|\App\Http\DAL\Models\User whereName($value)
- * @method static \Illuminate\Database\Query\Builder|\App\Http\DAL\Models\User whereCreatedAt($value)
- * @method static \Illuminate\Database\Query\Builder|\App\Http\DAL\Models\User whereUpdatedAt($value)
- */
- class User extends AbstractModel
- {
- public function toBusinessModel()
- {
- $user = new UserDBO();
- $user->setId($this->id);
- $user->setName($this->name);
-
- return $user;
- }
- }
|