PutCommandLineCreator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
4
namespace Beanie\Command\CommandLineCreator;
5
6
7
class PutCommandLineCreator extends GenericCommandLineCreator
8
{
9
    /**
10
     * @inheritDoc
11
     */
12 7
    public function __construct($commandName, array $arguments, array $argumentDefaults = [])
13
    {
14 7
        $this->setData(array_shift($arguments));
15
16 7
        parent::__construct($commandName, $arguments, $argumentDefaults);
17
18 7
        array_push($this->arguments, strlen($this->getData()));
19 7
    }
20
}
21