Commit 0471b498 authored by Dries's avatar Dries

#1813966 by Sylvain Lecoy: Remove __construct() from interfaces definition.

parent cb11d949
......@@ -12,18 +12,6 @@
*/
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.
*
......
......@@ -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);
......
......@@ -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();
......
......@@ -54,14 +54,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.
*
......
......@@ -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
......
......@@ -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) {
}
......
......@@ -21,7 +21,10 @@
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) {}
......
......@@ -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;
......
......@@ -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;
......
......@@ -12,14 +12,6 @@
*/
interface EntityFormControllerInterface {
/**
* Constructs the object.
*
* @param string $operation
* The name of the current operation.
*/
public function __construct($operation);
/**
* Builds an entity form.
*
......
......@@ -20,14 +20,6 @@
*/
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.
*
......
......@@ -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();
......
......@@ -14,13 +14,6 @@
* 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.
......
......@@ -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;
......
......@@ -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;
......
......@@ -14,16 +14,6 @@
*/
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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment