Completed
Push — master ( 2fc4c7...b0bc56 )
by Sebastian
03:38
created

All   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A keep() 0 4 1
1
<?php
2
namespace phpbu\App\Backup\Cleaner\Stepwise\Keeper;
3
4
use phpbu\App\Backup\Cleaner\Stepwise\Keeper;
5
use phpbu\App\Backup\File;
6
7
/**
8
 * Keep all class
9
 *
10
 * @package    phpbu
11
 * @subpackage Backup
12
 * @author     Sebastian Feldmann <[email protected]>
13
 * @copyright  Sebastian Feldmann <[email protected]>
14
 * @license    https://opensource.org/licenses/MIT The MIT License (MIT)
15
 * @link       http://phpbu.de/
16
 * @since      Class available since Release 5.0.0
17
 */
18
class All implements Keeper
19
{
20
    /**
21
     * Decides if given file should be kept.
22
     *
23
     * @param  \phpbu\App\Backup\File $file
24
     * @return bool
25
     */
26
    public function keep(File $file) : bool
27
    {
28
        return true;
29
    }
30
}
31