githubtrue/backend/app/Model/Vehicle.php @ b50f8ebd
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* Created by PhpStorm.
|
4 |
* User: Zdenda
|
5 |
* Date: 20.4.2018
|
6 |
* Time: 20:25
|
7 |
*/
|
8 |
|
9 |
namespace App\Model; |
10 |
|
11 |
|
12 |
class Vehicle |
13 |
{
|
14 |
public $id; |
15 |
public $name; |
16 |
|
17 |
public static function create($id, $name) { |
18 |
$inst = new Vehicle(); |
19 |
$inst->id = $id; |
20 |
$inst->name = $name; |
21 |
|
22 |
return $inst; |
23 |
}
|
24 |
}
|