Completed
Push — master ( b819b4...8115f1 )
by Sherif
14:17
created

DummyController::update()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Modules\DummyModule\Http\Controllers;
4
5
use App\Modules\Core\BaseClasses\BaseApiController;
6
use App\Modules\DummyModule\Services\DummyService;
7
use App\Modules\DummyModule\Http\Requests\StoreDummy;
8
9
class DummyController extends BaseApiController
10
{
11
    /**
12
     * Path of the sotre form request.
13
     *
14
     * @var string
15
     */
16
    protected $storeFormRequest = 'App\Modules\DummyModule\Http\Requests\StoreDummy';
17
    
18
    /**
19
     * Path of the model resource
20
     *
21
     * @var string
22
     */
23
    protected $modelResource = 'App\Modules\DummyModule\Http\Resources\DummyModel';
24
25
    /**
26
     * List of all route actions that the base api controller
27
     * will skip permissions check for them.
28
     * @var array
29
     */
30
    protected $skipPermissionCheck = [];
31
32
    /**
33
     * List of all route actions that the base api controller
34
     * will skip login check for them.
35
     * @var array
36
     */
37
    protected $skipLoginCheck = [];
38
39
    /**
40
     * Init new object.
41
     *
42
     * @param   DummyService $service
43
     * @return  void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
44
     */
45
    public function __construct(DummyService $service)
46
    {
47
        parent::__construct($service);
48
    }
49
}
50