class PrivateMethodTest in Coder 8.3.x
Same name and namespace in other branches
- 8.3 tests/DrupalPractice/good/good.php \PrivateMethodTest
- 8.2 coder_sniffer/DrupalPractice/Test/good/good.php \PrivateMethodTest
Hierarchy
- class \PrivateMethodTest
Expanded class hierarchy of PrivateMethodTest
File
- tests/
DrupalPractice/ good/ good.php, line 157
View source
class PrivateMethodTest {
/**
* This private method is used as array filter callback, so not unused.
*/
private function usedAsCallback() {
return FALSE;
}
public function test() {
return array_filter(array(), [
$this,
'usedAsCallback',
]);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrivateMethodTest:: |
public | function | ||
PrivateMethodTest:: |
private | function | This private method is used as array filter callback, so not unused. |