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); namespace Rector\Symfony\ValueObject\Tag; use Rector\Sym..
Decoded Output download
<?php
declare (strict_types=1);
namespace Rector\Symfony\ValueObject\Tag;
use Rector\Symfony\Contract\Tag\TagInterface;
final class EventListenerTag implements TagInterface
{
/**
* @readonly
* @var string
*/
private $event;
/**
* @readonly
* @var string
*/
private $method;
/**
* @readonly
* @var int
*/
private $priority;
public function __construct(string $event, string $method, int $priority)
{
$this->event = $event;
$this->method = $method;
$this->priority = $priority;
}
public function getName() : string
{
return 'kernel.event_listener';
}
public function getEvent() : string
{
return $this->event;
}
public function getMethod() : string
{
return $this->method;
}
public function getPriority() : int
{
return $this->priority;
}
/**
* @return array<string, mixed>
*/
public function getData() : array
{
return ['method' => $this->method, 'priority' => $this->priority, 'event' => $this->event];
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare (strict_types=1);
namespace Rector\Symfony\ValueObject\Tag;
use Rector\Symfony\Contract\Tag\TagInterface;
final class EventListenerTag implements TagInterface
{
/**
* @readonly
* @var string
*/
private $event;
/**
* @readonly
* @var string
*/
private $method;
/**
* @readonly
* @var int
*/
private $priority;
public function __construct(string $event, string $method, int $priority)
{
$this->event = $event;
$this->method = $method;
$this->priority = $priority;
}
public function getName() : string
{
return 'kernel.event_listener';
}
public function getEvent() : string
{
return $this->event;
}
public function getMethod() : string
{
return $this->method;
}
public function getPriority() : int
{
return $this->priority;
}
/**
* @return array<string, mixed>
*/
public function getData() : array
{
return ['method' => $this->method, 'priority' => $this->priority, 'event' => $this->event];
}
}
Function Calls
None |
Stats
MD5 | 8842c404ea948f74002ce58ba9bd4a56 |
Eval Count | 0 |
Decode Time | 634 ms |