ArgumentsTooMany   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php namespace nyx\console\input\exceptions;
2
3
// Internal dependencies
4
use nyx\console\input\parameter\values\Arguments;
5
6
/**
7
 * Too Many Input Arguments Exception
8
 *
9
 * @version     0.1.0
10
 * @author      Michal Chojnacki <[email protected]>
11
 * @copyright   2012-2017 Nyx Dev Team
12
 * @link        https://github.com/unyx/nyx
13
 */
14
class ArgumentsTooMany extends InvalidArguments
15
{
16
    /**
17
     * {@inheritDoc}
18
     */
19
    public function __construct(Arguments $arguments, string $message = null, int $code = 0, \Exception $previous = null)
20
    {
21
        parent::__construct($arguments, $message ?? 'Too many arguments given.', $code, $previous);
22
    }
23
}
24