File: MicroSecondTime.php Lines 33 to 52
33     * 1. __construct(float $usec, float $sec)
34     * 2. __construct(string strMicrotime)
35     * 3. __construct(void)
36     * </pre>
37     *
38     * @param mixed $arg1
39     * @param float $arg2
40     * @throws InvalidArgumentException
41     */
Type Class Description
pmd CyclomaticComplexity The method __construct() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
42
Type Class Description
pmd CyclomaticComplexity The method __construct() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
    public function __construct($arg1 = null, $arg2 = null) {
43        // Pseudo overload
44
45        if (isset($arg1) && is_float($arg1) && isset($arg2) && is_float($arg2)) {
46            // 1. __construct(float $usec, float $sec)
47            $this->_usec = $arg1;
48            $this->_sec = $arg2;
49        } else if (isset($arg1) && is_string($arg1) && is_null($arg2)) {
50            // 2. __construct(string strMicrotime)
51            $this->setMicrotimeString($arg1);
52        } else if ($arg1 === null && $arg2 === null) {