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.
*/
/**
* Virtual product type implementation
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Catalog\Model\Product\Type;
class Virtual extends \Magento\Catalog\Model\Product\Type\AbstractType
{
/**
* Check is virtual product
*
* @param \Magento\Catalog\Model\Product $product
* @return bool
*/
public function isVirtual($product)
{
return true;
}
/**
* Check that product of this type has weight
*
* @return bool
*/
public function hasWeight()
{
return false;
}
/**
* Delete data specific for Virtual product type
*
* @param \Magento\Catalog\Model\Product $product
* @return void
*/
public function deleteTypeSpecificData(\Magento\Catalog\Model\Product $product)
{
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* Virtual product type implementation
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Catalog\Model\Product\Type;
class Virtual extends \Magento\Catalog\Model\Product\Type\AbstractType
{
/**
* Check is virtual product
*
* @param \Magento\Catalog\Model\Product $product
* @return bool
*/
public function isVirtual($product)
{
return true;
}
/**
* Check that product of this type has weight
*
* @return bool
*/
public function hasWeight()
{
return false;
}
/**
* Delete data specific for Virtual product type
*
* @param \Magento\Catalog\Model\Product $product
* @return void
*/
public function deleteTypeSpecificData(\Magento\Catalog\Model\Product $product)
{
}
}
Function Calls
None |
Stats
MD5 | 198c46c80d95b56d70b93ca46605f6fe |
Eval Count | 0 |
Decode Time | 108 ms |