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 /** * This file is part of Win32Service Library package. * * @copy Win32Service (..
Decoded Output download
<?php
/**
* This file is part of Win32Service Library package.
*
* @copy Win32Service (c) 2018-2019
*
* @author "MacintoshPlus" <[email protected]>
*/
namespace Win32Service\Model;
class ServiceStatus
{
const CURRENT_STATE = 'CurrentState';
public function __construct(private array $datas)
{
}
public function isStopped(): bool
{
return isset($this->datas[self::CURRENT_STATE]) &&
$this->datas[self::CURRENT_STATE] === WIN32_SERVICE_STOPPED;
}
public function isRunning(): bool
{
return isset($this->datas[self::CURRENT_STATE]) &&
$this->datas[self::CURRENT_STATE] === WIN32_SERVICE_RUNNING;
}
public function isPaused(): bool
{
return isset($this->datas[self::CURRENT_STATE]) &&
$this->datas[self::CURRENT_STATE] === WIN32_SERVICE_PAUSED;
}
public function starting(): bool
{
return isset($this->datas[self::CURRENT_STATE]) &&
$this->datas[self::CURRENT_STATE] === WIN32_SERVICE_START_PENDING;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of Win32Service Library package.
*
* @copy Win32Service (c) 2018-2019
*
* @author "MacintoshPlus" <[email protected]>
*/
namespace Win32Service\Model;
class ServiceStatus
{
const CURRENT_STATE = 'CurrentState';
public function __construct(private array $datas)
{
}
public function isStopped(): bool
{
return isset($this->datas[self::CURRENT_STATE]) &&
$this->datas[self::CURRENT_STATE] === WIN32_SERVICE_STOPPED;
}
public function isRunning(): bool
{
return isset($this->datas[self::CURRENT_STATE]) &&
$this->datas[self::CURRENT_STATE] === WIN32_SERVICE_RUNNING;
}
public function isPaused(): bool
{
return isset($this->datas[self::CURRENT_STATE]) &&
$this->datas[self::CURRENT_STATE] === WIN32_SERVICE_PAUSED;
}
public function starting(): bool
{
return isset($this->datas[self::CURRENT_STATE]) &&
$this->datas[self::CURRENT_STATE] === WIN32_SERVICE_START_PENDING;
}
}
Function Calls
None |
Stats
MD5 | 1d53ece5ea64a5ef0ee09595ac9c1ef7 |
Eval Count | 0 |
Decode Time | 83 ms |