PHP Classes

File: src/BoolArray.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   Typed Arrays   src/BoolArray.php   Download  
File: src/BoolArray.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Typed Arrays
Implement arrays of values of only one type
Author: By
Last change:
Date: 4 months ago
Size: 263 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\TypedArrays;

class
BoolArray extends AbstractTypedArray
{
    protected const
string SCALAR_TYPE = 'bool';
    public function
__construct(bool ...$arguments)
    {
       
$this->contents = $arguments;
    }
}