| 1 | <?php |
||
| 8 | class RoomItem extends ChocolateyModel |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Disable Timestamps. |
||
| 12 | * |
||
| 13 | * @var bool |
||
| 14 | */ |
||
| 15 | public $timestamps = false; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The table associated with the model. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $table = 'items'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Primary Key of the Table. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $primaryKey = 'id'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Store a RoomItem. |
||
| 33 | * |
||
| 34 | * @param int $userId |
||
| 35 | * @param int $roomId |
||
| 36 | * @param int $itemId |
||
| 37 | * @param int $xPosition |
||
| 38 | * @param int $yPosition |
||
| 39 | * @param string $zPosition |
||
| 40 | * @param int $rotation |
||
| 41 | * @param string $extraData |
||
| 42 | * @param string $wallPosition |
||
| 43 | * |
||
| 44 | * @return RoomItem |
||
| 45 | */ |
||
| 46 | public function store(int $userId, int $roomId, int $itemId, int $xPosition, int $yPosition, string $zPosition, int $rotation, string $extraData, string $wallPosition = ''): RoomItem |
||
| 66 | } |
||
| 67 |