You are here

public function MockService::getSomeOtherService in Service Container 7.2

Same name and namespace in other branches
  1. 7 tests/src/DependencyInjection/MockService.php \Drupal\Tests\service_container\DependencyInjection\MockService::getSomeOtherService()

Gets the someOtherService object.

Return value

object The injected service.

File

tests/src/DependencyInjection/MockService.php, line 82
Contains \Drupal\Tests\service_container\DependencyInjection\MockService

Class

MockService
Helper class to test Container::get() method.

Namespace

Drupal\Tests\service_container\DependencyInjection

Code

public function getSomeOtherService() {
  return $this->someOtherService;
}