@@ -76,6 +76,9 @@ discard block |
||
| 76 | 76 | return $this->connection->makeComment($comments); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $query |
|
| 81 | + */ |
|
| 79 | 82 | public function query($query, array $args = array(), $options = array()) { |
| 80 | 83 | return $this->connection->query($query, $args, $options); |
| 81 | 84 | } |
@@ -84,26 +87,44 @@ discard block |
||
| 84 | 87 | return $this->connection->getDriverClass($class); |
| 85 | 88 | } |
| 86 | 89 | |
| 90 | + /** |
|
| 91 | + * @param string $table |
|
| 92 | + */ |
|
| 87 | 93 | public function select($table, $alias = NULL, array $options = array()) { |
| 88 | 94 | return $this->connection->select($table, $alias, $options); |
| 89 | 95 | } |
| 90 | 96 | |
| 97 | + /** |
|
| 98 | + * @param string $table |
|
| 99 | + */ |
|
| 91 | 100 | public function insert($table, array $options = array()) { |
| 92 | 101 | return $this->connection->insert($table, $options); |
| 93 | 102 | } |
| 94 | 103 | |
| 104 | + /** |
|
| 105 | + * @param string $table |
|
| 106 | + */ |
|
| 95 | 107 | public function merge($table, array $options = array()) { |
| 96 | 108 | return $this->connection->merge($table, $options); |
| 97 | 109 | } |
| 98 | 110 | |
| 111 | + /** |
|
| 112 | + * @param string $table |
|
| 113 | + */ |
|
| 99 | 114 | public function update($table, array $options = array()) { |
| 100 | 115 | return $this->connection->update($table, $options); |
| 101 | 116 | } |
| 102 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $table |
|
| 120 | + */ |
|
| 103 | 121 | public function delete($table, array $options = array()) { |
| 104 | 122 | return $this->connection->delete($table, $options); |
| 105 | 123 | } |
| 106 | 124 | |
| 125 | + /** |
|
| 126 | + * @param string $table |
|
| 127 | + */ |
|
| 107 | 128 | public function truncate($table, array $options = array()) { |
| 108 | 129 | return $this->connection->truncate($table, $options); |
| 109 | 130 | } |
@@ -116,6 +137,9 @@ discard block |
||
| 116 | 137 | return preg_replace('/[^A-Za-z0-9_.]+/', '', $database); |
| 117 | 138 | } |
| 118 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $table |
|
| 142 | + */ |
|
| 119 | 143 | public function escapeTable($table) { |
| 120 | 144 | return $this->connection->escapeTable($table); |
| 121 | 145 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | /** |
| 57 | 57 | * Loads a Yaml file. |
| 58 | 58 | * |
| 59 | - * @param mixed $file The resource |
|
| 59 | + * @param string $file The resource |
|
| 60 | 60 | */ |
| 61 | 61 | public function load($file) |
| 62 | 62 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | namespace Drupal\Core\KeyValueStore; |
| 9 | 9 | |
| 10 | 10 | use Drupal\Component\Serialization\SerializationInterface; |
| 11 | -use Drupal\Core\DestructableInterface; |
|
| 12 | 11 | use Drupal\Core\Database\Connection; |
| 13 | 12 | |
| 14 | 13 | /** |
@@ -7,9 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | namespace Drupal\service_container\Tests\KeyValue; |
| 9 | 9 | |
| 10 | -use Drupal\Core\DependencyInjection\ContainerBuilder; |
|
| 11 | 10 | use Drupal\Core\KeyValueStore\KeyValueExpirableFactory; |
| 12 | -use Drupal\Core\KeyValueStore\KeyValueFactory; |
|
| 13 | 11 | |
| 14 | 12 | /** |
| 15 | 13 | * Tests the key-value database storage. |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | /** |
| 267 | 267 | * Sets the default namespaces. |
| 268 | 268 | * |
| 269 | - * @param array $namespace |
|
| 269 | + * @param string $namespace |
|
| 270 | 270 | * |
| 271 | 271 | * @return void |
| 272 | 272 | * |
@@ -1045,7 +1045,7 @@ discard block |
||
| 1045 | 1045 | * FieldAssignment ::= FieldName "=" PlainValue |
| 1046 | 1046 | * FieldName ::= identifier |
| 1047 | 1047 | * |
| 1048 | - * @return array |
|
| 1048 | + * @return \stdClass |
|
| 1049 | 1049 | */ |
| 1050 | 1050 | private function FieldAssignment() |
| 1051 | 1051 | { |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | * parameter, none) |
| 130 | 130 | * - 'position' : the position of the token in the input string |
| 131 | 131 | * |
| 132 | - * @return array|null the next token; null if there is no more tokens left |
|
| 132 | + * @return boolean the next token; null if there is no more tokens left |
|
| 133 | 133 | */ |
| 134 | 134 | public function moveNext() |
| 135 | 135 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Drupal\Component\Plugin\PluginBase; |
| 11 | 11 | use Drupal\service_container\Messenger\MessengerInterface; |
| 12 | 12 | use Drupal\service_container\Tests\ServiceContainerIntegrationTestBase; |
| 13 | -use Mockery\CountValidator\Exception; |
|
| 14 | 13 | use Symfony\Component\Yaml\Exception\RuntimeException; |
| 15 | 14 | |
| 16 | 15 | class ServiceContainerAnnotationDiscoveryIntegrationTest extends ServiceContainerIntegrationTestBase { |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | * |
| 131 | 131 | * @param string $id A full id or alias for a service definition. |
| 132 | 132 | * |
| 133 | - * @return Definition|null The definition related to the supplied id |
|
| 133 | + * @return Definition The definition related to the supplied id |
|
| 134 | 134 | */ |
| 135 | 135 | private function getDefinition($id) |
| 136 | 136 | { |
@@ -139,6 +139,11 @@ discard block |
||
| 139 | 139 | return null === $id ? null : $this->container->getDefinition($id); |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $id |
|
| 144 | + * |
|
| 145 | + * @return string |
|
| 146 | + */ |
|
| 142 | 147 | private function getDefinitionId($id) |
| 143 | 148 | { |
| 144 | 149 | while ($this->container->hasAlias($id)) { |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | * |
| 232 | 232 | * @param string $id The service identifier |
| 233 | 233 | * |
| 234 | - * @return bool true if the service is defined, false otherwise |
|
| 234 | + * @return boolean|null true if the service is defined, false otherwise |
|
| 235 | 235 | * |
| 236 | 236 | * @api |
| 237 | 237 | */ |