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 /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license ..
Decoded Output download
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Analytics\ReportXml;
use Magento\Framework\DB\Select;
/**
* Query object, contains SQL statement, information about connection, query arguments
*/
class Query implements \JsonSerializable
{
/**
* @var Select
*/
private $select;
/**
* @var \Magento\Analytics\ReportXml\SelectHydrator
*/
private $selectHydrator;
/**
* @var string
*/
private $connectionName;
/**
* @var array
*/
private $config;
/**
* Query constructor.
*
* @param Select $select
* @param SelectHydrator $selectHydrator
* @param string $connectionName
* @param array $config
*/
public function __construct(
Select $select,
SelectHydrator $selectHydrator,
$connectionName,
$config
) {
$this->select = $select;
$this->connectionName = $connectionName;
$this->selectHydrator = $selectHydrator;
$this->config = $config;
}
/**
* Returns query select
*
* @return Select
*/
public function getSelect()
{
return $this->select;
}
/**
* Returns Connection name
*
* @return string
*/
public function getConnectionName()
{
return $this->connectionName;
}
/**
* Returns configuration
*
* @return array
*/
public function getConfig()
{
return $this->config;
}
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return [
'connectionName' => $this->getConnectionName(),
'select_parts' => $this->selectHydrator->extract($this->getSelect()),
'config' => $this->getConfig()
];
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Analytics\ReportXml;
use Magento\Framework\DB\Select;
/**
* Query object, contains SQL statement, information about connection, query arguments
*/
class Query implements \JsonSerializable
{
/**
* @var Select
*/
private $select;
/**
* @var \Magento\Analytics\ReportXml\SelectHydrator
*/
private $selectHydrator;
/**
* @var string
*/
private $connectionName;
/**
* @var array
*/
private $config;
/**
* Query constructor.
*
* @param Select $select
* @param SelectHydrator $selectHydrator
* @param string $connectionName
* @param array $config
*/
public function __construct(
Select $select,
SelectHydrator $selectHydrator,
$connectionName,
$config
) {
$this->select = $select;
$this->connectionName = $connectionName;
$this->selectHydrator = $selectHydrator;
$this->config = $config;
}
/**
* Returns query select
*
* @return Select
*/
public function getSelect()
{
return $this->select;
}
/**
* Returns Connection name
*
* @return string
*/
public function getConnectionName()
{
return $this->connectionName;
}
/**
* Returns configuration
*
* @return array
*/
public function getConfig()
{
return $this->config;
}
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return [
'connectionName' => $this->getConnectionName(),
'select_parts' => $this->selectHydrator->extract($this->getSelect()),
'config' => $this->getConfig()
];
}
}
Function Calls
None |
Stats
MD5 | 5f58e44f9a269f0b9e12b47d5e3e0b9c |
Eval Count | 0 |
Decode Time | 87 ms |