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\Observable; use Exception; use Rx\Disposable\EmptyDisposable; use Rx\..

Decoded Output download

<?php

namespace Rx\Observable;

use Exception;
use Rx\Disposable\EmptyDisposable;
use Rx\Observable;
use Rx\ObserverInterface;
use Rx\Scheduler\ImmediateScheduler;
use Rx\SchedulerInterface;

class ErrorObservable extends Observable
{
    private $error;

    public function __construct(Exception $error)
    {
        $this->error = $error;
    }

    public function subscribe(ObserverInterface $observer, SchedulerInterface $scheduler = null)
    {

        $scheduler = $scheduler?: new ImmediateScheduler();

        return $scheduler->schedule(function () use ($observer) {
            $observer->onError($this->error);
        });
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Rx\Observable;

use Exception;
use Rx\Disposable\EmptyDisposable;
use Rx\Observable;
use Rx\ObserverInterface;
use Rx\Scheduler\ImmediateScheduler;
use Rx\SchedulerInterface;

class ErrorObservable extends Observable
{
    private $error;

    public function __construct(Exception $error)
    {
        $this->error = $error;
    }

    public function subscribe(ObserverInterface $observer, SchedulerInterface $scheduler = null)
    {

        $scheduler = $scheduler?: new ImmediateScheduler();

        return $scheduler->schedule(function () use ($observer) {
            $observer->onError($this->error);
        });
    }
}

Function Calls

None

Variables

None

Stats

MD5 ddea48530231f28f0dfa605e4c174139
Eval Count 0
Decode Time 86 ms