function BarClass::setBaz

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass::setBaz()
  2. 8.9.x core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass::setBaz()
  3. 11.x core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass::setBaz()

Setter for our BazClass object.

This method is called during the service initialization.

Parameters

\Drupal\Tests\Core\DependencyInjection\Fixture\BazClass $baz: A BazClass object to store.

File

core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php, line 30

Class

BarClass
Stub class which acts as a service to test the container.

Namespace

Drupal\Tests\Core\DependencyInjection\Fixture

Code

public function setBaz(BazClass $baz) {
    $this->baz = $baz;
}

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