for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* @license http://opensource.org/licenses/mit-license.php MIT
* @link https://github.com/nicoSWD
* @author Nicolas Oelgart <[email protected]>
*/
namespace nicoSWD\Rules\Tokens;
use nicoSWD\Rules\TokenType;
final class TokenBool extends BaseToken
{
public function getType(): int
return TokenType::VALUE;
}
* @return bool
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
public function getValue()
return ($this->value === true || strtolower((string) $this->value) === 'true');