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 Rx\Disposable; use Rx\DisposableInterface; use Rx\SchedulerInterface; c..

Decoded Output download

<?php

namespace Rx\Disposable;

use Rx\DisposableInterface;
use Rx\SchedulerInterface;

class ScheduledDisposable implements DisposableInterface
{
    /** @var DisposableInterface */
    private $disposable;

    /** @var SchedulerInterface */
    private $scheduler;

    /** @var bool */
    protected $isDisposed = false;

    public function __construct(SchedulerInterface $scheduler, DisposableInterface $disposable)
    {
        $this->scheduler  = $scheduler;
        $this->disposable = $disposable;
    }

    public function dispose()
    {
        if ($this->isDisposed) {
            return;
        }

        $this->isDisposed = true;

        $this->scheduler->schedule(function () {
            $this->disposable->dispose();
        });
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Rx\Disposable;

use Rx\DisposableInterface;
use Rx\SchedulerInterface;

class ScheduledDisposable implements DisposableInterface
{
    /** @var DisposableInterface */
    private $disposable;

    /** @var SchedulerInterface */
    private $scheduler;

    /** @var bool */
    protected $isDisposed = false;

    public function __construct(SchedulerInterface $scheduler, DisposableInterface $disposable)
    {
        $this->scheduler  = $scheduler;
        $this->disposable = $disposable;
    }

    public function dispose()
    {
        if ($this->isDisposed) {
            return;
        }

        $this->isDisposed = true;

        $this->scheduler->schedule(function () {
            $this->disposable->dispose();
        });
    }
}

Function Calls

None

Variables

None

Stats

MD5 7281569c8db35ee9fda1a0c4fea8f1cf
Eval Count 0
Decode Time 94 ms