ArgumentsTooMany::__construct()   A
last analyzed

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 4
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