for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ducatel\PHPCollection\Specialized;
use Ducatel\PHPCollection\TypedArray;
/**
* Class NumberArray
* This collection is a specialization of TypedArray for numeric variables.
*
*@package Ducatel\PHPCollection\Specialized
*/
class NumberArray extends TypedArray
{
* NumberTypedArray constructor.
public function __construct()
$isNumber = function ($obj) {
return is_numeric($obj);
};
parent::__construct($isNumber);
}