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\Catalog\Ui\DataProvider\Product\Listing\Collector;

use Magento\Catalog\Api\Data\ProductInterface;
use Magento\Catalog\Api\Data\ProductRenderInterface;
use Magento\Catalog\Ui\DataProvider\Product\ProductRenderCollectorInterface;

/**
 * Collect additional information about product, in order to allow product rendering on front
 */
class AdditionalInfo implements ProductRenderCollectorInterface
{
    /**
     * @inheritdoc
     */
    public function collect(ProductInterface $product, ProductRenderInterface $productRender)
    {
        $productRender->setIsSalable($product->isSalable());
        $productRender->setType($product->getTypeId());
        $productRender->setName($product->getName());
        $productRender->setId($product->getId());
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * Copyright  Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Catalog\Ui\DataProvider\Product\Listing\Collector;

use Magento\Catalog\Api\Data\ProductInterface;
use Magento\Catalog\Api\Data\ProductRenderInterface;
use Magento\Catalog\Ui\DataProvider\Product\ProductRenderCollectorInterface;

/**
 * Collect additional information about product, in order to allow product rendering on front
 */
class AdditionalInfo implements ProductRenderCollectorInterface
{
    /**
     * @inheritdoc
     */
    public function collect(ProductInterface $product, ProductRenderInterface $productRender)
    {
        $productRender->setIsSalable($product->isSalable());
        $productRender->setType($product->getTypeId());
        $productRender->setName($product->getName());
        $productRender->setId($product->getId());
    }
}

Function Calls

None

Variables

None

Stats

MD5 43db4fff5756dd0056d9fb110a719548
Eval Count 0
Decode Time 117 ms