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

OrdersController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDataModel() 0 4 1
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