Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created

AOP_Case_Events::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?PHP
2
/**
3
 *
4
 * @package Advanced OpenPortal
5
 * @copyright SalesAgility Ltd http://www.salesagility.com
6
 *
7
 * This program is free software; you can redistribute it and/or modify
8
 * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
9
 * the Free Software Foundation; either version 3 of the License, or
10
 * (at your option) any later version.
11
 *
12
 * This program is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 * GNU General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
18
 * along with this program; if not, see http://www.gnu.org/licenses
19
 * or write to the Free Software Foundation,Inc., 51 Franklin Street,
20
 * Fifth Floor, Boston, MA 02110-1301  USA
21
 *
22
 * @author Salesagility Ltd <[email protected]>
23
 */
24
25
/**
26
 * THIS CLASS IS FOR DEVELOPERS TO MAKE CUSTOMIZATIONS IN
27
 */
28 1
require_once('modules/AOP_Case_Events/AOP_Case_Events_sugar.php');
29
class AOP_Case_Events extends AOP_Case_Events_sugar {
30
31 7
	public function __construct(){
32 7
		parent::__construct();
33 7
	}
34
35
    /**
36
     * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
37
     */
38
    public function AOP_Case_Events(){
39
        $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
40
        if(isset($GLOBALS['log'])) {
41
            $GLOBALS['log']->deprecated($deprecatedMessage);
42
        }
43
        else {
44
            trigger_error($deprecatedMessage, E_USER_DEPRECATED);
45
        }
46
        self::__construct();
47
    }
48
49
50
}
51
?>