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 /* * This file is part of Fusonic-linq. * https://github.com/fusonic/fusonic-linq..

Decoded Output download

<?php

/*
 * This file is part of Fusonic-linq.
 * https://github.com/fusonic/fusonic-linq
 *
 * (c) Fusonic GmbH
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Fusonic\Linq\Iterator;

use InvalidArgumentException;
use Traversable;

class SelectIterator extends \IteratorIterator
{
    private $selector;

    public function __construct(Traversable $iterator, callable $selector)
    {
        parent::__construct($iterator);
        if ($selector === null) {
            throw new InvalidArgumentException("Selector must not be null.");
        }

        $this->selector = $selector;
    }

    public function current()
    {
        $selector = $this->selector;
        return $selector(parent::current());
    }
} ?>

Did this file decode correctly?

Original Code

<?php

/*
 * This file is part of Fusonic-linq.
 * https://github.com/fusonic/fusonic-linq
 *
 * (c) Fusonic GmbH
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Fusonic\Linq\Iterator;

use InvalidArgumentException;
use Traversable;

class SelectIterator extends \IteratorIterator
{
    private $selector;

    public function __construct(Traversable $iterator, callable $selector)
    {
        parent::__construct($iterator);
        if ($selector === null) {
            throw new InvalidArgumentException("Selector must not be null.");
        }

        $this->selector = $selector;
    }

    public function current()
    {
        $selector = $this->selector;
        return $selector(parent::current());
    }
}

Function Calls

None

Variables

None

Stats

MD5 2585e1ea27f3092d740bfe884bc22b1e
Eval Count 0
Decode Time 89 ms