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\Core\Converter;

use Sculpin\Core\Source\SourceInterface;

/**
 * Provide a source as converter context.
 *
 * @author Beau Simensen <[email protected]>
 */
class SourceConverterContext implements ConverterContextInterface
{
    /**
     * @var SourceInterface
     */
    private $source;

    public function __construct(SourceInterface $source)
    {
        $this->source = $source;
    }

    /**
     * {@inheritdoc}
     */
    public function content(): string
    {
        return $this->source->content();
    }

    /**
     * {@inheritdoc}
     */
    public function setContent(string $content): void
    {
        $this->source->setContent($content);
    }
}
 ?>

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\Core\Converter;

use Sculpin\Core\Source\SourceInterface;

/**
 * Provide a source as converter context.
 *
 * @author Beau Simensen <[email protected]>
 */
class SourceConverterContext implements ConverterContextInterface
{
    /**
     * @var SourceInterface
     */
    private $source;

    public function __construct(SourceInterface $source)
    {
        $this->source = $source;
    }

    /**
     * {@inheritdoc}
     */
    public function content(): string
    {
        return $this->source->content();
    }

    /**
     * {@inheritdoc}
     */
    public function setContent(string $content): void
    {
        $this->source->setContent($content);
    }
}

Function Calls

None

Variables

None

Stats

MD5 6a2e45bdcc50caf783bfb997296f6764
Eval Count 0
Decode Time 76 ms