From f58bc6af2477dc3cd136c7ef96cb354b819f6120 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 5 Aug 2013 00:44:14 -0400 Subject: Issue #1813966 by Sylvain Lecoy: Remove __construct() from interfaces definition. --- includes/cache.inc | 12 ++++-------- includes/entity.inc | 13 ++++--------- 2 files changed, 8 insertions(+), 17 deletions(-) (limited to 'includes') diff --git a/includes/cache.inc b/includes/cache.inc index f76164b91..c2a514646 100644 --- a/includes/cache.inc +++ b/includes/cache.inc @@ -217,13 +217,6 @@ function cache_is_empty($bin) { * @see DrupalDatabaseCache */ interface DrupalCacheInterface { - /** - * Constructs a new cache interface. - * - * @param $bin - * The cache bin for which the object is created. - */ - function __construct($bin); /** * Returns data from the persistent cache. @@ -311,7 +304,10 @@ class DrupalDatabaseCache implements DrupalCacheInterface { protected $bin; /** - * Constructs a new DrupalDatabaseCache object. + * Constructs a DrupalDatabaseCache object. + * + * @param $bin + * The cache bin for which the object is created. */ function __construct($bin) { $this->bin = $bin; diff --git a/includes/entity.inc b/includes/entity.inc index 2fefd5904..25f75846c 100644 --- a/includes/entity.inc +++ b/includes/entity.inc @@ -13,14 +13,6 @@ */ interface DrupalEntityControllerInterface { - /** - * Constructor. - * - * @param $entityType - * The entity type for which the instance is created. - */ - public function __construct($entityType); - /** * Resets the internal, static entity cache. * @@ -119,6 +111,9 @@ class DrupalDefaultEntityController implements DrupalEntityControllerInterface { /** * Constructor: sets basic variables. + * + * @param $entityType + * The entity type for which the instance is created. */ public function __construct($entityType) { $this->entityType = $entityType; @@ -634,7 +629,7 @@ class EntityFieldQuery { /** * Adds a condition on field values. - * + * * Note that entities with empty field values will be excluded from the * EntityFieldQuery results when using this method. * -- cgit v1.2.3