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