Passed
Push — master ( 123b10...c45d3f )
by Julien
05:28
created

Backup   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A validation() 0 7 1
A initialize() 0 3 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
namespace Zemit\Models;
12
13
use Zemit\Models\Abstracts\AbstractBackup;
0 ignored issues
show
Bug introduced by
The type Zemit\Models\Abstracts\AbstractBackup was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
use Zemit\Models\Interfaces\BackupInterface;
15
16
class Backup extends AbstractBackup implements BackupInterface
17
{
18
    protected $deleted = self::NO;
19
20
    public function initialize(): void
21
    {
22
        parent::initialize();
23
        // @todo relationships
24
    }
25
26
    public function validation(): bool
27
    {
28
        $validator = $this->genericValidation();
29
30
        // @todo validations
31
        
32
        return $this->validate($validator);
33
    }
34
}
35