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 namespace Webkul\CatalogRule\Models; use Illuminate\Database\Eloquent\Model; use W..
Decoded Output download
<?php
namespace Webkul\CatalogRule\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\CatalogRule\Contracts\CatalogRuleProduct as CatalogRuleProductContract;
use Webkul\Core\Models\ChannelProxy;
use Webkul\Customer\Models\CustomerGroupProxy;
use Webkul\Product\Models\ProductProxy;
class CatalogRuleProduct extends Model implements CatalogRuleProductContract
{
public $timestamps = false;
protected $fillable = [
'starts_from',
'ends_till',
'discount_amount',
'action_type',
'end_other_rules',
'sort_order',
'catalog_rule_id',
'channel_id',
'customer_group_id',
'product_id',
];
/**
* Get the Catalog Rule that owns the catalog rule.
*/
public function catalog_rule()
{
return $this->belongsTo(CatalogRuleProxy::modelClass(), 'catalog_rule_id');
}
/**
* Get the Product that owns the catalog rule.
*/
public function product()
{
return $this->belongsTo(ProductProxy::modelClass(), 'product_id');
}
/**
* Get the channels that owns the catalog rule.
*/
public function channel()
{
return $this->belongsTo(ChannelProxy::modelClass(), 'channel_id');
}
/**
* Get the customer groups that owns the catalog rule.
*/
public function customer_group()
{
return $this->belongsTo(CustomerGroupProxy::modelClass(), 'customer_group_id');
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Webkul\CatalogRule\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\CatalogRule\Contracts\CatalogRuleProduct as CatalogRuleProductContract;
use Webkul\Core\Models\ChannelProxy;
use Webkul\Customer\Models\CustomerGroupProxy;
use Webkul\Product\Models\ProductProxy;
class CatalogRuleProduct extends Model implements CatalogRuleProductContract
{
public $timestamps = false;
protected $fillable = [
'starts_from',
'ends_till',
'discount_amount',
'action_type',
'end_other_rules',
'sort_order',
'catalog_rule_id',
'channel_id',
'customer_group_id',
'product_id',
];
/**
* Get the Catalog Rule that owns the catalog rule.
*/
public function catalog_rule()
{
return $this->belongsTo(CatalogRuleProxy::modelClass(), 'catalog_rule_id');
}
/**
* Get the Product that owns the catalog rule.
*/
public function product()
{
return $this->belongsTo(ProductProxy::modelClass(), 'product_id');
}
/**
* Get the channels that owns the catalog rule.
*/
public function channel()
{
return $this->belongsTo(ChannelProxy::modelClass(), 'channel_id');
}
/**
* Get the customer groups that owns the catalog rule.
*/
public function customer_group()
{
return $this->belongsTo(CustomerGroupProxy::modelClass(), 'customer_group_id');
}
}
Function Calls
None |
Stats
MD5 | 2ff31891c0d5020d651df4473391848d |
Eval Count | 0 |
Decode Time | 83 ms |