You are here

class PrivateMethodTest in Coder 8.3.x

Same name and namespace in other branches
  1. 8.3 tests/DrupalPractice/good/good.php \PrivateMethodTest
  2. 8.2 coder_sniffer/DrupalPractice/Test/good/good.php \PrivateMethodTest

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
PrivateMethodTest::test public function
PrivateMethodTest::usedAsCallback private function This private method is used as array filter callback, so not unused.