BaseCommand::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * VersionControl_HG
4
 * Simple OO implementation for Mercurial.
5
 *
6
 * PHP Version 5.4
7
 *
8
 * @copyright 2014 Siad Ardroumli
9
 * @license http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link http://siad007.github.io/versioncontrol_hg
11
 */
12
13
namespace Siad007\VersionControl\HG\Command;
14
15
/**
16
 * Base command.
17
 */
18
class BaseCommand extends AbstractCommand
19
{
20
    /**
21
     * Available arguments for this command.
22
     *
23
     * @var array $arguments
24
     */
25
    protected $arguments = [];
26
27
    /**
28
     * {@inheritdoc}
29
     */
30 4
    public function __toString()
31
    {
32 4
        return $this->name;
33
    }
34
}
35