Test Failed
Push — feature-laravel-5.4 ( e7a61c...3a1072 )
by Kirill
03:11
created

DocsCategory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A docs() 0 4 1
1
<?php
2
/**
3
 * This file is part of laravel.su package.
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace App\Models;
10
11
use Illuminate\Database\Eloquent\Model;
12
use Illuminate\Database\Eloquent\Relations\HasMany;
13
14
/**
15
 * Class DocsCategory.
16
 */
17
class DocsCategory extends Model
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $table = 'docs_categories';
23
24
    /**
25
     * @var bool
26
     */
27
    public $timestamps = false;
28
29
    /**
30
     * @return HasMany
31
     */
32
    public function docs(): HasMany
33
    {
34
        return $this->hasMany(Docs::class);
35
    }
36
}