You are here

class BarClass in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/routing/Tests/Fixtures/AnnotatedClasses/BarClass.php \Symfony\Component\Routing\Tests\Fixtures\AnnotatedClasses\BarClass
  2. 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/includes/classes.php \BarClass
  3. 8.0 core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass
Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass

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

Hierarchy

  • class \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass

Expanded class hierarchy of BarClass

See also

\Drupal\Tests\Core\DependencyInjection\ContainerBuilderTest

\Drupal\Tests\Core\DependencyInjection\Fixture\BazClass

2 files declare their use of BarClass
ContainerBuilderTest.php in core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php
Contains \Drupal\Tests\Core\DependencyInjection\ContainerBuilderTest.
ContainerTest.php in core/tests/Drupal/Tests/Core/DependencyInjection/ContainerTest.php
Contains \Drupal\Tests\Core\DependencyInjection\ContainerTest.
10 string references to 'BarClass'
container11.php in vendor/symfony/dependency-injection/Tests/Fixtures/containers/container11.php
container13.php in vendor/symfony/dependency-injection/Tests/Fixtures/containers/container13.php
ContainerBuilderTest::testAddClassResource in vendor/symfony/dependency-injection/Tests/ContainerBuilderTest.php
@covers Symfony\Component\DependencyInjection\ContainerBuilder::addClassResource
ContainerBuilderTest::testCompilesClassDefinitionsOfLazyServices in vendor/symfony/dependency-injection/Tests/ContainerBuilderTest.php
@covers Symfony\Component\DependencyInjection\ContainerBuilder::compile
ContainerBuilderTest::testCreateServiceWithExpression in vendor/symfony/dependency-injection/Tests/ContainerBuilderTest.php

... See full list

File

core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php, line 16
Contains \Drupal\Tests\Core\DependencyInjection\Fixture\BarClass.

Namespace

Drupal\Tests\Core\DependencyInjection\Fixture
View source
class BarClass {

  /**
   * Storage for a protected BazClass object.
   *
   * @var Drupal\Tests\Core\DependencyInjection\Fixture\BazClass
   */
  protected $baz;

  /**
   * Setter for our BazClass object.
   *
   * This method is called during the service initialization.
   *
   * @param \Drupal\Tests\Core\DependencyInjection\Fixture\BazClass $baz
   *   A BazClass object to store.
   */
  public function setBaz(BazClass $baz) {
    $this->baz = $baz;
  }

  /**
   * Getter for our BazClass object.
   *
   * @return \Drupal\Tests\Core\DependencyInjection\Fixture\BazClass
   *   The stored BazClass object.
   */
  public function getBaz() {
    return $this->baz;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BarClass::$baz protected property Storage for a protected BazClass object.
BarClass::getBaz public function Getter for our BazClass object.
BarClass::setBaz public function Setter for our BazClass object.