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\Notification; use Exception; use Rx\ObserverInterface; use Rx\Notific..

Decoded Output download

<?php

namespace Rx\Notification;

use Exception;
use Rx\ObserverInterface;
use Rx\Notification;

class OnErrorNotification extends Notification
{
    private $exception;

    public function __construct(Exception $exception)
    {
        parent::__construct('E');

        $this->exception = $exception;
    }

    protected function doAcceptObservable(ObserverInterface $observer)
    {
        $observer->onError($this->exception);
    }

    protected function doAccept($onNext, $onError, $onCompleted)
    {
        $onError($this->exception);
    }

    public function __toString()
    {
        // todo: check message too? other properties?
        return 'OnError(' . get_class($this->exception) . ')';
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Rx\Notification;

use Exception;
use Rx\ObserverInterface;
use Rx\Notification;

class OnErrorNotification extends Notification
{
    private $exception;

    public function __construct(Exception $exception)
    {
        parent::__construct('E');

        $this->exception = $exception;
    }

    protected function doAcceptObservable(ObserverInterface $observer)
    {
        $observer->onError($this->exception);
    }

    protected function doAccept($onNext, $onError, $onCompleted)
    {
        $onError($this->exception);
    }

    public function __toString()
    {
        // todo: check message too? other properties?
        return 'OnError(' . get_class($this->exception) . ')';
    }
}

Function Calls

None

Variables

None

Stats

MD5 18e1a31f249f2ff8420c1c5be7f82276
Eval Count 0
Decode Time 85 ms