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 part of Hyperf. * * @link https:..
Decoded Output download
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\AsyncQueue;
use Hyperf\Contract\CompressInterface;
use Hyperf\Contract\UnCompressInterface;
use Throwable;
abstract class Job implements JobInterface, CompressInterface, UnCompressInterface
{
protected int $maxAttempts = 0;
public function fail(Throwable $e): void
{
}
public function setMaxAttempts(int $maxAttempts): static
{
$this->maxAttempts = $maxAttempts;
return $this;
}
public function getMaxAttempts(): int
{
return $this->maxAttempts;
}
public function uncompress(): static
{
foreach ($this as $key => $value) {
if ($value instanceof UnCompressInterface) {
$this->{$key} = $value->uncompress();
}
}
return $this;
}
public function compress(): static
{
foreach ($this as $key => $value) {
if ($value instanceof CompressInterface) {
$this->{$key} = $value->compress();
}
}
return $this;
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\AsyncQueue;
use Hyperf\Contract\CompressInterface;
use Hyperf\Contract\UnCompressInterface;
use Throwable;
abstract class Job implements JobInterface, CompressInterface, UnCompressInterface
{
protected int $maxAttempts = 0;
public function fail(Throwable $e): void
{
}
public function setMaxAttempts(int $maxAttempts): static
{
$this->maxAttempts = $maxAttempts;
return $this;
}
public function getMaxAttempts(): int
{
return $this->maxAttempts;
}
public function uncompress(): static
{
foreach ($this as $key => $value) {
if ($value instanceof UnCompressInterface) {
$this->{$key} = $value->uncompress();
}
}
return $this;
}
public function compress(): static
{
foreach ($this as $key => $value) {
if ($value instanceof CompressInterface) {
$this->{$key} = $value->compress();
}
}
return $this;
}
}
Function Calls
None |
Stats
MD5 | 2839c053b9b7f939193c4cba509dbb88 |
Eval Count | 0 |
Decode Time | 103 ms |