for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the {@see AppUtils\Value_Bool} class.
*
* @package Application Utils
* @subpackage Values
* @see AppUtils\Value_Bool
*/
declare(strict_types=1);
namespace AppUtils;
* Boolean value. Offers a call representation for a boolean value.
class Value_Bool extends Value
{
protected $value = false;
public function __construct(bool $value=false)
$this->value = $value;
}
public function set(bool $value) : Value_Bool
return $this;
public function get() : bool
return $this->value;
public function isTrue() : bool
return $this->value === true;
public function isFalse() : bool
return $this->value === false;