for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPSA\Node\Scalar;
/**
* Boolean node extension
*/
class Boolean extends \PhpParser\Node\Scalar
{
/** @var boolean Number value */
public $value;
* Constructs a boolean node.
*
* @param boolean $value Value of the number
* @param array $attributes Additional attributes
public function __construct($value, array $attributes = array())
parent::__construct($attributes);
$this->value = $value;
}
//@codeCoverageIgnoreStart
* @return array
public function getSubNodeNames(): array
return ['value'];
//@codeCoverageIgnoreEnd
* Gets the type of the node.
* @return string Type of the node
public function getType(): string
return 'Scalar_Boolean';