Skip to content

Commit f58bc6a

Browse files
Issue #1813966 by Sylvain Lecoy: Remove __construct() from interfaces definition.
1 parent 1b0d6d2 commit f58bc6a

File tree

3 files changed

+14
-24
lines changed

3 files changed

+14
-24
lines changed

includes/cache.inc

+4-8
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,6 @@ function cache_is_empty($bin) {
217217
* @see DrupalDatabaseCache
218218
*/
219219
interface DrupalCacheInterface {
220-
/**
221-
* Constructs a new cache interface.
222-
*
223-
* @param $bin
224-
* The cache bin for which the object is created.
225-
*/
226-
function __construct($bin);
227220

228221
/**
229222
* Returns data from the persistent cache.
@@ -311,7 +304,10 @@ class DrupalDatabaseCache implements DrupalCacheInterface {
311304
protected $bin;
312305

313306
/**
314-
* Constructs a new DrupalDatabaseCache object.
307+
* Constructs a DrupalDatabaseCache object.
308+
*
309+
* @param $bin
310+
* The cache bin for which the object is created.
315311
*/
316312
function __construct($bin) {
317313
$this->bin = $bin;

includes/entity.inc

+4-9
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@
1313
*/
1414
interface DrupalEntityControllerInterface {
1515

16-
/**
17-
* Constructor.
18-
*
19-
* @param $entityType
20-
* The entity type for which the instance is created.
21-
*/
22-
public function __construct($entityType);
23-
2416
/**
2517
* Resets the internal, static entity cache.
2618
*
@@ -119,6 +111,9 @@ class DrupalDefaultEntityController implements DrupalEntityControllerInterface {
119111

120112
/**
121113
* Constructor: sets basic variables.
114+
*
115+
* @param $entityType
116+
* The entity type for which the instance is created.
122117
*/
123118
public function __construct($entityType) {
124119
$this->entityType = $entityType;
@@ -634,7 +629,7 @@ class EntityFieldQuery {
634629

635630
/**
636631
* Adds a condition on field values.
637-
*
632+
*
638633
* Note that entities with empty field values will be excluded from the
639634
* EntityFieldQuery results when using this method.
640635
*

modules/system/system.queue.inc

+6-7
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@ class DrupalQueue {
9797
}
9898

9999
interface DrupalQueueInterface {
100-
/**
101-
* Start working with a queue.
102-
*
103-
* @param $name
104-
* Arbitrary string. The name of the queue to work with.
105-
*/
106-
public function __construct($name);
107100

108101
/**
109102
* Add a queue item and store it directly to the queue.
@@ -315,6 +308,12 @@ class MemoryQueue implements DrupalQueueInterface {
315308
*/
316309
protected $id_sequence;
317310

311+
/**
312+
* Start working with a queue.
313+
*
314+
* @param $name
315+
* Arbitrary string. The name of the queue to work with.
316+
*/
318317
public function __construct($name) {
319318
$this->queue = array();
320319
$this->id_sequence = 0;

0 commit comments

Comments
 (0)