Lazy_Collection::__construct( callable $callback )
Array_Promise constructor.
Contents
Parameters
- $callback
-
(callable) (Required) The callback that will be used to populate the elements.
Source
File: src/Tribe/Utils/Lazy_Collection.php
public function __construct( callable $callback ) {
$this->callback = $callback;
}
Changelog
| Version | Description |
|---|---|
| 4.9.14 | Introduced. |