PHP Classes

File: src/Functions/bool.php

Recommend this page to a friend!
  Classes of Axel Pardemann  >  PHP Scalar Objects  >  src/Functions/bool.php  >  Download  
File: src/Functions/bool.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Scalar Objects
Implement objects that behave like scalar values
Author: By
Last change:
Date: 3 years ago
Size: 330 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

namespace
NorseBlue\ScalarObjects\Functions;

use
NorseBlue\ScalarObjects\Types\BoolType;

/**
 * Create a new BoolType object.
 *
 * @param bool|BoolType $value
 *
 * @return \NorseBlue\ScalarObjects\Types\BoolType
 */
function bool($value = false): BoolType
{
    return new
BoolType($value);
}

For more information send a message to info at phpclasses dot org.