Move   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A validateMove() 0 4 1
1
<?php
2
3
/**
4
 * @package File manager
5
 * @author Iurii Makukh <[email protected]>
6
 * @copyright Copyright (c) 2017, Iurii Makukh <[email protected]>
7
 * @license https://www.gnu.org/licenses/gpl-3.0.en.html GPL-3.0+
8
 */
9
10
namespace gplcart\modules\file_manager\handlers\validators;
11
12
use gplcart\modules\file_manager\models\Scanner;
13
14
/**
15
 * Provides methods to validate "move" command
16
 */
17
class Move extends Copy
18
{
19
20
    /**
21
     * Move constructor.
22
     * @param Scanner $scanner
23
     */
24
    public function __construct(Scanner $scanner)
25
    {
26
        parent::__construct($scanner);
27
    }
28
29
    /**
30
     * Validates an array of submitted data while moving a file to another destination
31
     * @param array $submitted
32
     * @param array $options
33
     * @return boolean|array
34
     */
35
    public function validateMove(array &$submitted, array $options = array())
36
    {
37
        return $this->validateCopy($submitted, $options);
38
    }
39
40
}
41