Test Failed
Push — master ( b1cf76...d8fe36 )
by Julien
08:28
created

AuditDetail   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 13
ccs 7
cts 7
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 4 1
A validation() 0 5 1
1
<?php
2
/**
3
 * This file is part of the Zemit Framework.
4
 *
5
 * (c) Zemit Team <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE.txt
8
 * file that was distributed with this source code.
9
 */
10
11
declare(strict_types=1);
12
13
namespace Zemit\Models;
14
15
use Zemit\Models\Abstracts\AuditDetailAbstract;
16
use Zemit\Models\Interfaces\AuditDetailInterface;
17
18
/**
19
 * Class AuditDetail
20
 *
21
 * This class represents a AuditDetail object.
22
 * It extends the AuditDetailAbstract class and implements the AuditDetailInterface.
23
 */
24
class AuditDetail extends AuditDetailAbstract implements AuditDetailInterface
25
{
26 5
    public function initialize(): void
27
    {
28 5
        parent::initialize();
29 5
        $this->addDefaultRelationships();
30
    }
31
32 3
    public function validation(): bool
33
    {
34 3
        $validator = $this->genericValidation();
35 3
        $this->addDefaultValidations($validator);
36 3
        return $this->validate($validator);
37
    }
38
}
39