Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 1fec387a4317 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
1041 * @group DependencyInjection | 1041 * @group DependencyInjection |
1042 */ | 1042 */ |
1043 class MockService { | 1043 class MockService { |
1044 | 1044 |
1045 /** | 1045 /** |
1046 * @var ContainerInterface | 1046 * @var \Symfony\Component\DependencyInjection\ContainerInterface |
1047 */ | 1047 */ |
1048 protected $container; | 1048 protected $container; |
1049 | 1049 |
1050 /** | 1050 /** |
1051 * @var object | 1051 * @var object |
1079 } | 1079 } |
1080 | 1080 |
1081 /** | 1081 /** |
1082 * Sets the container object. | 1082 * Sets the container object. |
1083 * | 1083 * |
1084 * @param ContainerInterface $container | 1084 * @param \Symfony\Component\DependencyInjection\ContainerInterface $container |
1085 * The container to inject via setter injection. | 1085 * The container to inject via setter injection. |
1086 */ | 1086 */ |
1087 public function setContainer(ContainerInterface $container) { | 1087 public function setContainer(ContainerInterface $container) { |
1088 $this->container = $container; | 1088 $this->container = $container; |
1089 } | 1089 } |
1090 | 1090 |
1091 /** | 1091 /** |
1092 * Gets the container object. | 1092 * Gets the container object. |
1093 * | 1093 * |
1094 * @return ContainerInterface | 1094 * @return \Symfony\Component\DependencyInjection\ContainerInterface |
1095 * The internally set container. | 1095 * The internally set container. |
1096 */ | 1096 */ |
1097 public function getContainer() { | 1097 public function getContainer() { |
1098 return $this->container; | 1098 return $this->container; |
1099 } | 1099 } |