class DependencySerializationTestDummy
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy
- 8.9.x core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy
- 10 core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy
Defines a test class which has a single service as dependency.
Hierarchy
- class \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy uses \Drupal\Core\DependencyInjection\DependencySerializationTrait
Expanded class hierarchy of DependencySerializationTestDummy
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ DependencySerializationTest.php, line 48
Namespace
Drupal\Tests\Core\DependencyInjectionView source
class DependencySerializationTestDummy {
use DependencySerializationTrait;
/**
* A test service.
*
* @var object
*/
public $service;
/**
* The container.
*
* @var \Symfony\Component\DependencyInjection\ContainerInterface
*/
public $container;
/**
* Constructs a new TestClass object.
*
* @param object $service
* A test service.
*/
public function __construct(\stdClass $service) {
$this->service = $service;
}
/**
* {@inheritdoc}
*/
public function setContainer(?ContainerInterface $container) : void {
$this->container = $container;
}
/**
* Gets the stored service IDs.
*/
public function getServiceIds() {
return $this->_serviceIds;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
DependencySerializationTestDummy::$container | public | property | The container. | |
DependencySerializationTestDummy::$service | public | property | A test service. | |
DependencySerializationTestDummy::getServiceIds | public | function | Gets the stored service IDs. | |
DependencySerializationTestDummy::setContainer | public | function | ||
DependencySerializationTestDummy::__construct | public | function | Constructs a new TestClass object. | |
DependencySerializationTrait::$_entityStorages | protected | property | ||
DependencySerializationTrait::$_serviceIds | protected | property | ||
DependencySerializationTrait::__sleep | public | function | 1 | |
DependencySerializationTrait::__wakeup | public | function | 2 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.