summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries2012-10-22 20:53:11 (GMT)
committerDries2012-10-22 20:53:11 (GMT)
commit0471b498f55e1899abc099f5e6d2ba577665bb82 (patch)
treed9acd6af2cb47b75d38eb623356e0a6de243c08d
parentcb11d949105db8d3631c90479ee1f15195b18b3d (diff)
#1813966 by Sylvain Lecoy: Remove __construct() from interfaces definition.
-rw-r--r--core/lib/Drupal/Component/Archiver/ArchiverInterface.php12
-rw-r--r--core/lib/Drupal/Component/Archiver/Tar.php7
-rw-r--r--core/lib/Drupal/Component/Archiver/Zip.php8
-rw-r--r--core/lib/Drupal/Core/Cache/CacheBackendInterface.php8
-rw-r--r--core/lib/Drupal/Core/Cache/DatabaseBackend.php5
-rw-r--r--core/lib/Drupal/Core/Cache/MemoryBackend.php5
-rw-r--r--core/lib/Drupal/Core/Cache/NullBackend.php5
-rw-r--r--core/lib/Drupal/Core/Entity/DatabaseStorageController.php6
-rw-r--r--core/lib/Drupal/Core/Entity/EntityFormController.php5
-rw-r--r--core/lib/Drupal/Core/Entity/EntityFormControllerInterface.php8
-rw-r--r--core/lib/Drupal/Core/Entity/EntityStorageControllerInterface.php8
-rw-r--r--core/lib/Drupal/Core/Queue/Memory.php5
-rw-r--r--core/lib/Drupal/Core/Queue/QueueInterface.php7
-rw-r--r--core/lib/Drupal/Core/Queue/System.php5
-rw-r--r--core/lib/Drupal/Core/TypedData/Type/TypedData.php7
-rw-r--r--core/lib/Drupal/Core/TypedData/TypedDataInterface.php10
16 files changed, 47 insertions, 64 deletions
diff --git a/core/lib/Drupal/Component/Archiver/ArchiverInterface.php b/core/lib/Drupal/Component/Archiver/ArchiverInterface.php
index 3b2dc28..96d9992 100644
--- a/core/lib/Drupal/Component/Archiver/ArchiverInterface.php
+++ b/core/lib/Drupal/Component/Archiver/ArchiverInterface.php
@@ -13,18 +13,6 @@ namespace Drupal\Component\Archiver;
interface ArchiverInterface {
/**
- * Constructs a new archiver instance.
- *
- * @param string $file_path
- * The full system path of the archive to manipulate. Only local files
- * are supported. If the file does not yet exist, it will be created if
- * appropriate.
- *
- * @throws Drupal\Component\Archiver\ArchiverException
- */
- public function __construct($file_path);
-
- /**
* Adds the specified file or directory to the archive.
*
* @param string $file_path
diff --git a/core/lib/Drupal/Component/Archiver/Tar.php b/core/lib/Drupal/Component/Archiver/Tar.php
index 8b5ebda..f06f3e0 100644
--- a/core/lib/Drupal/Component/Archiver/Tar.php
+++ b/core/lib/Drupal/Component/Archiver/Tar.php
@@ -21,6 +21,13 @@ class Tar implements ArchiverInterface {
/**
* Constructs a Tar object.
+ *
+ * @param string $file_path
+ * The full system path of the archive to manipulate. Only local files
+ * are supported. If the file does not yet exist, it will be created if
+ * appropriate.
+ *
+ * @throws Drupal\Component\Archiver\ArchiverException
*/
public function __construct($file_path) {
$this->tar = new ArchiveTar($file_path);
diff --git a/core/lib/Drupal/Component/Archiver/Zip.php b/core/lib/Drupal/Component/Archiver/Zip.php
index 47bfb67..3f0a066 100644
--- a/core/lib/Drupal/Component/Archiver/Zip.php
+++ b/core/lib/Drupal/Component/Archiver/Zip.php
@@ -24,10 +24,14 @@ class Zip implements ArchiverInterface {
protected $zip;
/**
- * Constructs a Tar object.
+ * Constructs a Zip object.
*
* @param string $file_path
- * The full system path of the archive to manipulate.
+ * The full system path of the archive to manipulate. Only local files
+ * are supported. If the file does not yet exist, it will be created if
+ * appropriate.
+ *
+ * @throws Drupal\Component\Archiver\ArchiverException
*/
public function __construct($file_path) {
$this->zip = new ZipArchive();
diff --git a/core/lib/Drupal/Core/Cache/CacheBackendInterface.php b/core/lib/Drupal/Core/Cache/CacheBackendInterface.php
index 9c4f8fc..ee1df76 100644
--- a/core/lib/Drupal/Core/Cache/CacheBackendInterface.php
+++ b/core/lib/Drupal/Core/Cache/CacheBackendInterface.php
@@ -55,14 +55,6 @@ interface CacheBackendInterface {
const CACHE_PERMANENT = 0;
/**
- * Constructs a new cache backend.
- *
- * @param $bin
- * The cache bin for which the object is created.
- */
- public function __construct($bin);
-
- /**
* Returns data from the persistent cache.
*
* Data may be stored as either plain text or as serialized data. cache_get()
diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
index 9ab6b11..a12ed13 100644
--- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php
+++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
@@ -29,7 +29,10 @@ class DatabaseBackend implements CacheBackendInterface {
protected static $tagCache = array();
/**
- * Implements Drupal\Core\Cache\CacheBackendInterface::__construct().
+ * Constructs a DatabaseBackend object.
+ *
+ * @param string $bin
+ * The cache bin for which the object is created.
*/
public function __construct($bin) {
// All cache tables should be prefixed with 'cache_', except for the
diff --git a/core/lib/Drupal/Core/Cache/MemoryBackend.php b/core/lib/Drupal/Core/Cache/MemoryBackend.php
index b17e06b..837df0e 100644
--- a/core/lib/Drupal/Core/Cache/MemoryBackend.php
+++ b/core/lib/Drupal/Core/Cache/MemoryBackend.php
@@ -29,7 +29,10 @@ class MemoryBackend implements CacheBackendInterface {
protected $invalidatedTags = array();
/**
- * Implements Drupal\Core\Cache\CacheBackendInterface::__construct().
+ * Constructs a MemoryBackend object.
+ *
+ * @param string $bin
+ * The cache bin for which the object is created.
*/
public function __construct($bin) {
}
diff --git a/core/lib/Drupal/Core/Cache/NullBackend.php b/core/lib/Drupal/Core/Cache/NullBackend.php
index ee8b1d3..66a9938 100644
--- a/core/lib/Drupal/Core/Cache/NullBackend.php
+++ b/core/lib/Drupal/Core/Cache/NullBackend.php
@@ -21,7 +21,10 @@ namespace Drupal\Core\Cache;
class NullBackend implements CacheBackendInterface {
/**
- * Implements Drupal\Core\Cache\CacheBackendInterface::__construct().
+ * Constructs a NullBackend object.
+ *
+ * @param string $bin
+ * The cache bin for which the object is created.
*/
public function __construct($bin) {}
diff --git a/core/lib/Drupal/Core/Entity/DatabaseStorageController.php b/core/lib/Drupal/Core/Entity/DatabaseStorageController.php
index 6342502..8b206ee 100644
--- a/core/lib/Drupal/Core/Entity/DatabaseStorageController.php
+++ b/core/lib/Drupal/Core/Entity/DatabaseStorageController.php
@@ -104,10 +104,12 @@ class DatabaseStorageController implements EntityStorageControllerInterface {
*/
protected $cache;
+
/**
- * Implements Drupal\Core\Entity\EntityStorageControllerInterface::__construct().
+ * Constructs a DatabaseStorageController object.
*
- * Sets basic variables.
+ * @param string $entityType
+ * The entity type for which the instance is created.
*/
public function __construct($entityType) {
$this->entityType = $entityType;
diff --git a/core/lib/Drupal/Core/Entity/EntityFormController.php b/core/lib/Drupal/Core/Entity/EntityFormController.php
index c4ebe28..f75015f 100644
--- a/core/lib/Drupal/Core/Entity/EntityFormController.php
+++ b/core/lib/Drupal/Core/Entity/EntityFormController.php
@@ -23,7 +23,10 @@ class EntityFormController implements EntityFormControllerInterface {
protected $operation;
/**
- * Implements Drupal\Core\Entity\EntityFormControllerInterface::__construct().
+ * Constructs an EntityFormController object.
+ *
+ * @param string $operation
+ * The name of the current operation.
*/
public function __construct($operation) {
$this->operation = $operation;
diff --git a/core/lib/Drupal/Core/Entity/EntityFormControllerInterface.php b/core/lib/Drupal/Core/Entity/EntityFormControllerInterface.php
index 72c97f1..26a227d 100644
--- a/core/lib/Drupal/Core/Entity/EntityFormControllerInterface.php
+++ b/core/lib/Drupal/Core/Entity/EntityFormControllerInterface.php
@@ -13,14 +13,6 @@ namespace Drupal\Core\Entity;
interface EntityFormControllerInterface {
/**
- * Constructs the object.
- *
- * @param string $operation
- * The name of the current operation.
- */
- public function __construct($operation);
-
- /**
* Builds an entity form.
*
* This is the entity form builder which is invoked via drupal_build_form()
diff --git a/core/lib/Drupal/Core/Entity/EntityStorageControllerInterface.php b/core/lib/Drupal/Core/Entity/EntityStorageControllerInterface.php
index 153cd80..2dcf682 100644
--- a/core/lib/Drupal/Core/Entity/EntityStorageControllerInterface.php
+++ b/core/lib/Drupal/Core/Entity/EntityStorageControllerInterface.php
@@ -21,14 +21,6 @@ namespace Drupal\Core\Entity;
interface EntityStorageControllerInterface {
/**
- * Constructs a new Drupal\Core\Entity\EntityStorageControllerInterface object.
- *
- * @param $entityType
- * The entity type for which the instance is created.
- */
- public function __construct($entityType);
-
- /**
* Resets the internal, static entity cache.
*
* @param $ids
diff --git a/core/lib/Drupal/Core/Queue/Memory.php b/core/lib/Drupal/Core/Queue/Memory.php
index d741bda..95abddd 100644
--- a/core/lib/Drupal/Core/Queue/Memory.php
+++ b/core/lib/Drupal/Core/Queue/Memory.php
@@ -32,7 +32,10 @@ class Memory implements QueueInterface {
protected $idSequence;
/**
- * Implements Drupal\Core\Queue\QueueInterface::__construct().
+ * Constructs a Memory object.
+ *
+ * @param string $name
+ * An arbitrary string. The name of the queue to work with.
*/
public function __construct($name) {
$this->queue = array();
diff --git a/core/lib/Drupal/Core/Queue/QueueInterface.php b/core/lib/Drupal/Core/Queue/QueueInterface.php
index e3e9350..8e7e22c 100644
--- a/core/lib/Drupal/Core/Queue/QueueInterface.php
+++ b/core/lib/Drupal/Core/Queue/QueueInterface.php
@@ -14,13 +14,6 @@ namespace Drupal\Core\Queue;
* in messages and to execute them at least once.
*/
interface QueueInterface {
- /**
- * Initializes a new queue object.
- *
- * @param $name
- * An arbitrary string. The name of the queue to work with.
- */
- public function __construct($name);
/**
* Adds a queue item and store it directly to the queue.
diff --git a/core/lib/Drupal/Core/Queue/System.php b/core/lib/Drupal/Core/Queue/System.php
index 6deab47..71c5e7f 100644
--- a/core/lib/Drupal/Core/Queue/System.php
+++ b/core/lib/Drupal/Core/Queue/System.php
@@ -19,7 +19,10 @@ class System implements ReliableQueueInterface {
protected $name;
/**
- * Implements Drupal\Core\Queue\QueueInterface::__construct().
+ * Constructs a System object.
+ *
+ * @param string $name
+ * An arbitrary string. The name of the queue to work with.
*/
public function __construct($name) {
$this->name = $name;
diff --git a/core/lib/Drupal/Core/TypedData/Type/TypedData.php b/core/lib/Drupal/Core/TypedData/Type/TypedData.php
index 6afc860..1e70c53 100644
--- a/core/lib/Drupal/Core/TypedData/Type/TypedData.php
+++ b/core/lib/Drupal/Core/TypedData/Type/TypedData.php
@@ -25,7 +25,12 @@ abstract class TypedData implements TypedDataInterface {
protected $definition;
/**
- * Implements TypedDataInterface::__construct().
+ * Constructs a TypedData object given its definition.
+ *
+ * @param array $definition
+ * The data definition.
+ *
+ * @see Drupal\Core\TypedData\TypedDataManager::create()
*/
public function __construct(array $definition) {
$this->definition = $definition;
diff --git a/core/lib/Drupal/Core/TypedData/TypedDataInterface.php b/core/lib/Drupal/Core/TypedData/TypedDataInterface.php
index 680b92e..1a8ffe7 100644
--- a/core/lib/Drupal/Core/TypedData/TypedDataInterface.php
+++ b/core/lib/Drupal/Core/TypedData/TypedDataInterface.php
@@ -15,16 +15,6 @@ use Drupal\user;
interface TypedDataInterface {
/**
- * Creates a typed data object given its definition.
- *
- * @param array $definition
- * The data definition.
- *
- * @see Drupal\Core\TypedData\TypedDataManager::create()
- */
- public function __construct(array $definition);
-
- /**
* Gets the data type.
*
* @return string