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\Observer; use Exception; use Rx\ObserverInterface; abstract class Ab..

Decoded Output download

<?php

namespace Rx\Observer;

use Exception;
use Rx\ObserverInterface;

abstract class AbstractObserver implements ObserverInterface
{
    private $isStopped = false;

    public function onCompleted()
    {
        if ($this->isStopped) {
            return;
        }

        $this->isStopped = true;
        $this->completed();
    }

    public function onError(Exception $error)
    {
        if ($this->isStopped) {
            return;
        }

        $this->isStopped = true;
        $this->error($error);
    }

    public function onNext($value)
    {
        if ($this->isStopped) {
            return;
        }

        $this->next($value);
    }

    abstract protected function completed();

    abstract protected function next($value);

    abstract protected function error(Exception $error);
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Rx\Observer;

use Exception;
use Rx\ObserverInterface;

abstract class AbstractObserver implements ObserverInterface
{
    private $isStopped = false;

    public function onCompleted()
    {
        if ($this->isStopped) {
            return;
        }

        $this->isStopped = true;
        $this->completed();
    }

    public function onError(Exception $error)
    {
        if ($this->isStopped) {
            return;
        }

        $this->isStopped = true;
        $this->error($error);
    }

    public function onNext($value)
    {
        if ($this->isStopped) {
            return;
        }

        $this->next($value);
    }

    abstract protected function completed();

    abstract protected function next($value);

    abstract protected function error(Exception $error);
}

Function Calls

None

Variables

None

Stats

MD5 30aea0bce07e372484af7b52f291a445
Eval Count 0
Decode Time 110 ms