PHP Classes

File: src/FloatArray.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   Typed Arrays   src/FloatArray.php   Download  
File: src/FloatArray.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: 7 months ago
Size: 267 bytes
 

Contents

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

class
FloatArray extends AbstractTypedArray
{
    protected const
string SCALAR_TYPE = 'float';

    public function
__construct(float ...$arguments)
    {
       
$this->contents = $arguments;
    }
}