You are here

public function BarClass::setBaz in Drupal 8

Same name and namespace in other branches
  1. 9 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 28

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;
}