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 declare(strict_types=1); /* * This file is a part of Sculpin. * * (c) Dragonfly..

Decoded Output download

<?php

declare(strict_types=1);

/*
 * This file is a part of Sculpin.
 *
 * (c) Dragonfly Development Inc.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sculpin\Contrib\ProxySourceCollection;

use Sculpin\Core\Source\SourceInterface;

class SimpleProxySourceItemFactory implements ProxySourceItemFactoryInterface
{
    private $reflectionClass;

    public function __construct($class = null)
    {
        $this->reflectionClass = new \ReflectionClass(
            $class ?: 'Sculpin\Contrib\ProxySourceCollection\ProxySourceItem'
        );
    }

    public function createProxySourceItem(SourceInterface $source)
    {
        return $this->reflectionClass->newInstance($source);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

/*
 * This file is a part of Sculpin.
 *
 * (c) Dragonfly Development Inc.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sculpin\Contrib\ProxySourceCollection;

use Sculpin\Core\Source\SourceInterface;

class SimpleProxySourceItemFactory implements ProxySourceItemFactoryInterface
{
    private $reflectionClass;

    public function __construct($class = null)
    {
        $this->reflectionClass = new \ReflectionClass(
            $class ?: 'Sculpin\Contrib\ProxySourceCollection\ProxySourceItem'
        );
    }

    public function createProxySourceItem(SourceInterface $source)
    {
        return $this->reflectionClass->newInstance($source);
    }
}

Function Calls

None

Variables

None

Stats

MD5 5530049f4f792f135d8b864c07d75891
Eval Count 0
Decode Time 94 ms