class TestServiceWithProtectedMethods

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\TestServiceWithProtectedMethods
  2. 10 core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\TestServiceWithProtectedMethods
  3. 11.x core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\TestServiceWithProtectedMethods

Hierarchy

Expanded class hierarchy of TestServiceWithProtectedMethods

File

core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php, line 412

Namespace

Drupal\Tests\Component\ProxyBuilder
View source
class TestServiceWithProtectedMethods {
    public function testMethod($parameter) {
    }
    protected function protectedMethod($parameter) {
    }
    protected function privateMethod($parameter) {
    }

}

Members


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.