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\Model;
/**
* Class which add notification behaviour to classes that handling of a new data collection for MBI.
*/
class ExportDataHandlerNotification implements ExportDataHandlerInterface
{
/**
* @var ExportDataHandler
*/
private $exportDataHandler;
/**
* @var Connector
*/
private $analyticsConnector;
/**
* @param ExportDataHandlerInterface $exportDataHandler
* @param Connector $connector
*/
public function __construct(ExportDataHandler $exportDataHandler, Connector $connector)
{
$this->exportDataHandler = $exportDataHandler;
$this->analyticsConnector = $connector;
}
/**
* {@inheritdoc}
* Execute notification command.
*
* @return bool
*/
public function prepareExportData()
{
$result = $this->exportDataHandler->prepareExportData();
$this->analyticsConnector->execute('notifyDataChanged');
return $result;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Analytics\Model;
/**
* Class which add notification behaviour to classes that handling of a new data collection for MBI.
*/
class ExportDataHandlerNotification implements ExportDataHandlerInterface
{
/**
* @var ExportDataHandler
*/
private $exportDataHandler;
/**
* @var Connector
*/
private $analyticsConnector;
/**
* @param ExportDataHandlerInterface $exportDataHandler
* @param Connector $connector
*/
public function __construct(ExportDataHandler $exportDataHandler, Connector $connector)
{
$this->exportDataHandler = $exportDataHandler;
$this->analyticsConnector = $connector;
}
/**
* {@inheritdoc}
* Execute notification command.
*
* @return bool
*/
public function prepareExportData()
{
$result = $this->exportDataHandler->prepareExportData();
$this->analyticsConnector->execute('notifyDataChanged');
return $result;
}
}
Function Calls
None |
Stats
MD5 | 98162b0a8135f38490c3474b2fe5d889 |
Eval Count | 0 |
Decode Time | 92 ms |