PHP Classes

File: src/IntArray.php

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

Contents

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

class
IntArray extends AbstractTypedArray
{
    protected const
string SCALAR_TYPE = 'int';

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