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

Object::equals()   B

Complexity

Conditions 3
Paths 3

Size

Total Lines 29
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 0
Metric Value
cc 3
eloc 17
nc 3
nop 1
dl 0
loc 29
ccs 0
cts 14
cp 0
crap 12
rs 8.8571
c 0
b 0
f 0
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