Completed
Push — master ( 1a65d7...018a8e )
by Nil
03:48
created

OrdersController::getDataModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Author: Nil Portugués Calderó <[email protected]>
4
 * Date: 12/9/15
5
 * Time: 2:57 PM.
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace NilPortugues\Tests\App\Controller;
12
13
use NilPortugues\Laravel5\JsonApi\Controller\JsonApiController;
14
use NilPortugues\Tests\App\Models\Orders;
15
16
class OrdersController extends JsonApiController
17
{
18
    /**
19
     * @return \Illuminate\Database\Eloquent\Model
20
     */
21
    public function getDataModel()
22
    {
23
        return new Orders();
24
    }
25
}
26