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.
 */
declare(strict_types=1);

namespace Magento\BundleGraphQl\Model;

use Magento\Framework\GraphQl\Query\Resolver\TypeResolverInterface;
use Magento\Bundle\Model\Product\Type as Type;

/**
 * @inheritdoc
 */
class BundleProductTypeResolver implements TypeResolverInterface
{
    const BUNDLE_PRODUCT = 'BundleProduct';
    
    /**
     * @inheritdoc
     */
    public function resolveType(array $data) : string
    {
        if (isset($data['type_id']) && $data['type_id'] == Type::TYPE_CODE) {
            return self::BUNDLE_PRODUCT;
        }
        return '';
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * Copyright  Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\BundleGraphQl\Model;

use Magento\Framework\GraphQl\Query\Resolver\TypeResolverInterface;
use Magento\Bundle\Model\Product\Type as Type;

/**
 * @inheritdoc
 */
class BundleProductTypeResolver implements TypeResolverInterface
{
    const BUNDLE_PRODUCT = 'BundleProduct';
    
    /**
     * @inheritdoc
     */
    public function resolveType(array $data) : string
    {
        if (isset($data['type_id']) && $data['type_id'] == Type::TYPE_CODE) {
            return self::BUNDLE_PRODUCT;
        }
        return '';
    }
}

Function Calls

None

Variables

None

Stats

MD5 6751825853fc5f47c868cdddb2db4dbf
Eval Count 0
Decode Time 115 ms