Completed
Branch master (486a28)
by Paweł
02:07
created

CodeReview_Issues_Deprecated::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
ccs 4
cts 4
cp 1
crap 1
1
<?php
2
3
class CodeReview_Issues_Deprecated extends CodeReview_Issues_Abstract {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
5 2
	public function __construct(array $params = array()) {
6 2
		$params['reason'] = 'deprecated';
7 2
		parent::__construct($params);
8 2
	}
9
10 1
	protected function getExplanation() {
11 1
		return "(deprecated since " . $this->data['version'] . ")"
12 1
			. ($this->data['fixinfoshort'] ? ' ' . $this->data['fixinfoshort'] : '');
13
	}
14
}