Passed
Pull Request — master (#40)
by Nelson
04:41
created

Object   A

Complexity

Total Complexity 29

Size/Duplication

Total Lines 200
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 56.25%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 200
ccs 45
cts 80
cp 0.5625
rs 10
c 1
b 0
f 0
wmc 29
lcom 0
cbo 2
1
<?php
2
/**
3
 * PHP: Nelson Martell Library file
4
 *
5
 * Content:
6
 * - Compatibility alias for `NelsonMartell\StrictObject` class in PHP <= 7.2 as `Object`.
7
 *
8
 * Copyright © 2017 Nelson Martell (http://nelson6e65.github.io)
9
 *
10
 * Licensed under The MIT License (MIT)
11
 * For full copyright and license information, please see the LICENSE
12
 * Redistributions of files must retain the above copyright notice.
13
 *
14
 * @copyright 2017 Nelson Martell
15
 * @link      http://nelson6e65.github.io/php_nml/
16
 * @since     v0.7.0
17
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License (MIT)
18
 * */
19
20
use NelsonMartell\StrictObject;
21
22
if (PHP_VERSION_ID < 72000) {
23
    class_alias(StrictObject::class, 'NelsonMartell\StrictObject');
24
}
25