any   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 2
1
<?php namespace norsys\score\composer\depedency\version\constraint\operator;
2
3
use norsys\score\{ composer\depedency\version\constraint\operator, php };
4
5
class any extends php\string\not\blank
6
	implements
7
		operator
8
{
9
	function __construct(string $string)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
10
	{
11
		try
12
		{
13
			parent::__construct($string);
14
		}
15
		catch (\invalidArgumentException $exception)
16
		{
17
			throw new \invalidArgumentException('Operator of composer version constraint must be a not empty string');
18
		}
19
	}
20
}
21