1.2.1094. Set Parent Definition¶
This command creates a DEFINITION link between parent keyword and the actual parent class.
<?php
class x {
const A = 1;
}
class y extends x {
function foo() {
// 'parent' needs a DEFFINITION link to the class x
return parent::A;
}
}
?>
See also Scope Resolution Operator (::).
1.2.1094.1. Connex PHP features¶
1.2.1094.1.1. Specs¶
Short name |
Complete/SetParentDefinition |
Rulesets |
|
Exakat since |
1.9.2 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |