Completed
Pull Request — master (#27)
by Nick
07:58 queued 01:08
created

AbstractResource::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php declare(strict_types=1);
2
/**
3
 * Abstract Resource.
4
 *
5
 * @package   App\Http\Resources
6
 * @author    Nick Menke <[email protected]>
7
 * @copyright 2018-2019 Nick Menke
8
 * @link      https://github.com/nlmenke/vertebrae
9
 */
10
11
namespace App\Http\Resources;
12
13
use Illuminate\Http\Resources\Json\JsonResource;
14
15
/**
16
 * The base resource class.
17
 *
18
 * This class contains any functionality that would otherwise be duplicated in
19
 * other resources. All other resources should extend this class.
20 16
 *
21
 * @since x.x.x introduced
22 16
 */
23
abstract class AbstractResource extends JsonResource
24
{
25
    //
26
}
27