nspl\ds\DefaultArray::__construct PHP Метод

__construct() публичный Метод

If you pass a function as default value it will be called without arguments to provide a default value for the given key, this value will be inserted in the array for the key, and returned.
public __construct ( mixed | callable $default, array $data = [] )
$default mixed | callable
$data array Provides initial data
    public function __construct($default, array $data = array())
    {
        $this->default = $default;
        $this->array = $data;
    }