Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Drupal\Core\Queue; use Drupal\Core\Database\Connection; /** * Defines ..
Decoded Output download
<?php
namespace Drupal\Core\Queue;
use Drupal\Core\Database\Connection;
/**
* Defines the key/value store factory for the database backend.
*/
class QueueDatabaseFactory {
/**
* The database connection.
*
* @var \Drupal\Core\Database\Connection $connection
*/
protected $connection;
/**
* Constructs this factory object.
*
* @param \Drupal\Core\Database\Connection $connection
* The Connection object containing the key-value tables.
*/
public function __construct(Connection $connection) {
$this->connection = $connection;
}
/**
* Constructs a new queue object for a given name.
*
* @param string $name
* The name of the collection holding key and value pairs.
*
* @return \Drupal\Core\Queue\DatabaseQueue
* A key/value store implementation for the given $collection.
*/
public function get($name) {
return new DatabaseQueue($name, $this->connection);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\Core\Queue;
use Drupal\Core\Database\Connection;
/**
* Defines the key/value store factory for the database backend.
*/
class QueueDatabaseFactory {
/**
* The database connection.
*
* @var \Drupal\Core\Database\Connection $connection
*/
protected $connection;
/**
* Constructs this factory object.
*
* @param \Drupal\Core\Database\Connection $connection
* The Connection object containing the key-value tables.
*/
public function __construct(Connection $connection) {
$this->connection = $connection;
}
/**
* Constructs a new queue object for a given name.
*
* @param string $name
* The name of the collection holding key and value pairs.
*
* @return \Drupal\Core\Queue\DatabaseQueue
* A key/value store implementation for the given $collection.
*/
public function get($name) {
return new DatabaseQueue($name, $this->connection);
}
}
Function Calls
None |
Stats
MD5 | 1c22d1209fb47d7fd31c86b2887a1214 |
Eval Count | 0 |
Decode Time | 89 ms |