Creates a new FalseNode.

@param boolean $boolean
Parameter is ignored.

@return FalseNode
480615
public static function create($boolean = FALSE) {
    $is_upper = FormatterFactory::getDefaultFormatter()->getConfig('boolean_null_upper');
    $node = new FalseNode();
    $node->addChild(NameNode::create($is_upper ? 'FALSE' : 'false'), 'constantName');
    return $node;
  }
1215856
protected function setAlive($bool)
    {
        $executionId = $this->getExecution()->getId();
        $this->getEntityManager()->clear($this->getProcess());
        $this->getEntityManager()->clear($this->getExecution());
        $this->getEntityManager()->refresh($this->getProcess());
        $this->setExecution($this->getEntityManager()
            ->getRepository('Minibus\Model\Entity\Execution')
            ->find($executionId));
        if ($bool && $this->getProcess()->getInterrupted()) {
            $this->getEntityManager()->refresh($this->getExecution());
            $this->getProcess()->setRunning(false);
            $this->getProcess()->setAlive(false);
            $this->getExecution()->setState(Execution::STOPPED_STATE);
            $this->getProcess()->setInterrupted(false);
            throw new ProcessException("L'exécution " . $this->getExecution()->getId() . " a été interrompue ");
        }
        $this->getProcess()->setRunning($bool);
        $this->getProcess()->setAlive($bool);
        $this->getExecution()->setState($bool ? Execution::RUNNING_STATE : Execution::STOPPED_STATE);
        $this->getEntityManager()->flush($this->getProcess());
    }
970089
static function createBooleanElement( $boolean, $variablePlacement = false )
    {
        if ( !is_bool( $boolean ) )
            $boolean = (bool)$boolean;
        return array( eZTemplate::TYPE_BOOLEAN,
                      $boolean, $variablePlacement );
    }
145514
public function setSuperAdmin($boolean)
    {
        if (true === $boolean) {
            $this->addRole(static::ROLE_SUPER_ADMIN);
        } else {
            $this->removeRole(static::ROLE_SUPER_ADMIN);
        }

        return $this;
    }
181990
public static function create($fid, $bool = null)
  {
    if(!is_bool($bool))
    {
      throw new \InvalidArgumentException('Not a valid boolean value');
    }
    return parent::create($fid, $bool);
  }
821128
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "includePolicyIds", scope = GetObject.class)
	public JAXBElement<Boolean> createGetObjectIncludePolicyIds(Boolean value) {
		return new JAXBElement<Boolean>(
				_GetObjectOfLatestVersionIncludePolicyIds_QNAME, Boolean.class,
				GetObject.class, value);
	}
1027836
public function boolNode($value = null, bool $allowSerializeEmpty = false): BoolNode
    {
        return BoolNode::create($value, $allowSerializeEmpty);
    }
1048014
public static function create(bool $allowSerializeEmpty = false): ObjectNode
    {
        $node = new self();
        $node->allowSerializeEmpty = $allowSerializeEmpty;

        return $node;
    }
950544
private static function encodeBoolean($bool)
    {
        if ($bool)
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_TRUE);
        }
        else
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_FALSE);
        }
    }
920024
public function whereNull($column, $boolean = 'and', $not = false)
    {
        $type = $not ? 'NotNull' : 'Null';

        if ($column == 'id') $column = 'id('. $this->modelAsNode() .')';

        $binding = $this->prepareBindingColumn($column);

        $this->wheres[] = compact('type', 'column', 'boolean', 'binding');

        return $this;
    }
1107529
public function noReset($bool = false)
	{
		if (is_bool($bool)) {
			$this->noReset = $bool;
		} else {
			throw new RuntimeException('Invalid parameter type setted, expected boolean, got ' . gettype($bool));
		}
	}
356842
public function requireIndexes($bool = true)
    {
        if (!$this->isQueryOrScan()) {
            //TODO: exception
        }

        if ($bool) {
            $this->queryClass = Query::class;
        } else {
            $this->queryClass = Scan::class;
        }

        return $this;
    }
381535
public function use_fallback($boolean = NULL)
	{
		if ($boolean === NULL)
		{
			return $this->_use_fallback;
		}
		$this->_use_fallback = $boolean;
		return $this;
	}
302566
public static function createDefault(bool $debugMode = true)
    {
        $block = new HtmlBlock();
        $template = new DefaultSplashTemplate($block);

        return new self($template, $block, $debugMode);
    }
64667
protected function formatBooleanCellValue($node)
    {
        $nodeValue = $node->getAttribute(self::XML_ATTRIBUTE_BOOLEAN_VALUE);
        // !! is similar to boolval()
        $cellValue = !!$nodeValue;
        return $cellValue;
    }
505767
protected function createNestedWhere($whereSlice, $boolean = 'and')
    {
        $whereGroup = $this->getQuery()->forNestedWhere();

        $whereGroup->wheres = $whereSlice;

        return ['type' => 'Nested', 'query' => $whereGroup, 'boolean' => $boolean];
    }
539974
private function createBooleanNode(\DOMDocument $document, bool $value, string $name = null): \DOMNode
    {
        $node = $document->createElement('json:boolean', $value ? 'true' : 'false');

        if (null !== $name) {
            $node->setAttribute('name', $name);
        }

        return $node;
    }