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

All::keep()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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