You are here

class RegistryAutoloadTraitTest in Registry Autoload 7

Hierarchy

Expanded class hierarchy of RegistryAutoloadTraitTest

File

tests/modules/registry_autoload_test/src/Cache/RegistryAutoloadTestTraitTest.php, line 9
Tests that traits work properly.

Namespace

Drupal\registry_autoload_test\Cache
View source
class RegistryAutoloadTraitTest {
  use RegistryAutoloadTestTestTrait;

  /**
   * Constructs a RegistryAutoloadTraitTest object.
   */
  public function __construct() {
    print "Hello Class using trait.\n";
    $this
      ->foo();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RegistryAutoloadTestTestTrait::foo public function Helper function to test trait loading.
RegistryAutoloadTraitTest::__construct public function Constructs a RegistryAutoloadTraitTest object.