class DependencySerializationTestDummy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 implements ContainerAwareInterface uses DependencySerializationTrait
Expanded class hierarchy of DependencySerializationTestDummy
File
- core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ DependencySerializationTest.php, line 55 - Contains \Drupal\Tests\Core\DependencyInjection\DependencySerializationTest.
Namespace
Drupal\Tests\Core\DependencyInjectionView source
class DependencySerializationTestDummy implements ContainerAwareInterface {
use DependencySerializationTrait;
/**
* A test service.
*
* @var \stdClass
*/
public $service;
/**
* The container.
*
* @var \Symfony\Component\DependencyInjection\ContainerInterface
*/
public $container;
/**
* Constructs a new TestClass object.
*
* @param \stdClass $service
* A test service.
*/
public function __construct(\stdClass $service) {
$this->service = $service;
}
/**
* {@inheritdoc}
*/
public function setContainer(ContainerInterface $container = NULL) {
$this->container = $container;
}
/**
* Gets the stored service IDs.
*/
public function getServiceIds() {
return $this->_serviceIds;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependencySerializationTestDummy:: |
public | property | The container. | |
DependencySerializationTestDummy:: |
public | property | A test service. | |
DependencySerializationTestDummy:: |
public | function | Gets the stored service IDs. | |
DependencySerializationTestDummy:: |
public | function |
Sets the Container. Overrides ContainerAwareInterface:: |
|
DependencySerializationTestDummy:: |
public | function | Constructs a new TestClass object. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 |