Overview

Namespaces

  • Pharborist
    • Constants
    • ControlStructures
    • Exceptions
    • Functions
    • Generators
    • Namespaces
    • Objects
    • Operators
    • Types
    • Variables

Classes

  • Pharborist\Variables\CompoundVariableNode
  • Pharborist\Variables\GlobalStatementNode
  • Pharborist\Variables\ReferenceVariableNode
  • Pharborist\Variables\StaticVariableNode
  • Pharborist\Variables\StaticVariableStatementNode
  • Pharborist\Variables\VariableNode
  • Pharborist\Variables\VariableVariableNode

Interfaces

  • Pharborist\Variables\VariableExpressionNode
  • Overview
  • Namespace
  • Class
 1: <?php
 2: namespace Pharborist\Types;
 3: 
 4: use Pharborist\FormatterFactory;
 5: use Pharborist\Namespaces\NameNode;
 6: 
 7: /**
 8:  * Boolean FALSE.
 9:  *
10:  * Represents the boolean FALSE constant, spelled either `FALSE` or `false`. This
11:  * does *not* represent other falsy values, like empty strings or 0.
12:  */
13: class FalseNode extends BooleanNode {
14:   /**
15:    * Creates a new FalseNode.
16:    *
17:    * @param boolean $boolean
18:    *   Parameter is ignored.
19:    *
20:    * @return FalseNode
21:    */
22:   public static function create($boolean = FALSE) {
23:     $is_upper = FormatterFactory::getDefaultFormatter()->getConfig('boolean_null_upper');
24:     $node = new FalseNode();
25:     $node->addChild(NameNode::create($is_upper ? 'FALSE' : 'false'), 'constantName');
26:     return $node;
27:   }
28: 
29:   /**
30:    * Gets the boolean value of the node.
31:    *
32:    * @return boolean
33:    */
34:   public function toValue() {
35:     return FALSE;
36:   }
37: }
38: 
Pharborist API documentation generated by ApiGen