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\Formatter;
use Dflydev\DotAccessConfiguration\Configuration as Data;
/**
* @author Beau Simensen <[email protected]>
*/
final class FormatContext
{
/**
* @var string
*/
private $templateId;
/**
* @var string
*/
private $template;
/**
* @var Data
*/
private $data;
public function __construct(string $templateId, string $template, array $data)
{
$this->templateId = $templateId;
$this->template = $template;
$this->data = new Data($data);
}
public function templateId(): string
{
return $this->templateId;
}
public function template(): string
{
return $this->template;
}
public function data(): Data
{
return $this->data;
}
public function formatter(): ?string
{
return $this->data->get('formatter');
}
}
?>
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\Formatter;
use Dflydev\DotAccessConfiguration\Configuration as Data;
/**
* @author Beau Simensen <[email protected]>
*/
final class FormatContext
{
/**
* @var string
*/
private $templateId;
/**
* @var string
*/
private $template;
/**
* @var Data
*/
private $data;
public function __construct(string $templateId, string $template, array $data)
{
$this->templateId = $templateId;
$this->template = $template;
$this->data = new Data($data);
}
public function templateId(): string
{
return $this->templateId;
}
public function template(): string
{
return $this->template;
}
public function data(): Data
{
return $this->data;
}
public function formatter(): ?string
{
return $this->data->get('formatter');
}
}
Function Calls
None |
Stats
MD5 | 8c430601b2e65b04cc250af9015278fb |
Eval Count | 0 |
Decode Time | 101 ms |