You are here

public function BarClass::setBaz in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/includes/classes.php \BarClass::setBaz()
  2. 8.0 core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass::setBaz()
Same name and namespace in other branches
  1. 8 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 33
Contains \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass.

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