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\Product\DataTypes; class CartItemValidationResult { /** ..

Decoded Output download

<?php

namespace Webkul\Product\DataTypes;

class CartItemValidationResult
{
    /**
     * @var bool
     */
    private $cartIsInvalid = false;

    /**
     * @var bool
     */
    private $itemIsInactive = false;

    /**
     * Function to check if cart is invalid
     */
    public function isCartInvalid(): bool
    {
        return $this->cartIsInvalid;
    }

    /**
     * Function to check if item is inactive
     */
    public function isItemInactive(): bool
    {
        return $this->itemIsInactive;
    }

    /**
     * Function to set if item is inactive
     */
    public function itemIsInactive(): void
    {
        $this->itemIsInactive = true;
    }

    /**
     * Function to set if cart is invalid
     */
    public function cartIsInvalid(): void
    {
        $this->cartIsInvalid = true;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Webkul\Product\DataTypes;

class CartItemValidationResult
{
    /**
     * @var bool
     */
    private $cartIsInvalid = false;

    /**
     * @var bool
     */
    private $itemIsInactive = false;

    /**
     * Function to check if cart is invalid
     */
    public function isCartInvalid(): bool
    {
        return $this->cartIsInvalid;
    }

    /**
     * Function to check if item is inactive
     */
    public function isItemInactive(): bool
    {
        return $this->itemIsInactive;
    }

    /**
     * Function to set if item is inactive
     */
    public function itemIsInactive(): void
    {
        $this->itemIsInactive = true;
    }

    /**
     * Function to set if cart is invalid
     */
    public function cartIsInvalid(): void
    {
        $this->cartIsInvalid = true;
    }
}

Function Calls

None

Variables

None

Stats

MD5 8f5a414926eeaeab15ef5d119ce532aa
Eval Count 0
Decode Time 98 ms