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 Phug\Formatter\Element; use Phug\Ast\NodeInterface; use Phug\Parser\Node..
Decoded Output download
<?php
namespace Phug\Formatter\Element;
use Phug\Ast\NodeInterface;
use Phug\Parser\NodeInterface as ParserNode;
use Phug\Util\Partial\NameTrait;
use Phug\Util\Partial\VariadicTrait;
class AttributeElement extends AbstractValueElement
{
use NameTrait;
use VariadicTrait;
/**
* AttributeElement constructor.
*
* @param string $name
* @param string|ExpressionElement $value
* @param ParserNode|null $originNode
* @param NodeInterface|null $parent
* @param array|null $children
*/
public function __construct(
$name,
$value,
ParserNode $originNode = null,
NodeInterface $parent = null,
array $children = null
) {
parent::__construct($originNode, $parent, $children);
$this->setName($name);
$this->setValue($value);
}
public function setValue($value)
{
parent::setValue($value);
if ($value instanceof ExpressionElement) {
$value->linkTo($this);
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Phug\Formatter\Element;
use Phug\Ast\NodeInterface;
use Phug\Parser\NodeInterface as ParserNode;
use Phug\Util\Partial\NameTrait;
use Phug\Util\Partial\VariadicTrait;
class AttributeElement extends AbstractValueElement
{
use NameTrait;
use VariadicTrait;
/**
* AttributeElement constructor.
*
* @param string $name
* @param string|ExpressionElement $value
* @param ParserNode|null $originNode
* @param NodeInterface|null $parent
* @param array|null $children
*/
public function __construct(
$name,
$value,
ParserNode $originNode = null,
NodeInterface $parent = null,
array $children = null
) {
parent::__construct($originNode, $parent, $children);
$this->setName($name);
$this->setValue($value);
}
public function setValue($value)
{
parent::setValue($value);
if ($value instanceof ExpressionElement) {
$value->linkTo($this);
}
}
}
Function Calls
None |
Stats
MD5 | 4d9f7f62b0bfc9a8e65c227166cee706 |
Eval Count | 0 |
Decode Time | 100 ms |