Timber\PostArrayObject
Overview #
This class extends ArrayObject
This class implements Timber\PostCollectionInterface, JsonSerializable
Methods #
| Name | Return Type | Summary/Returns |
|---|---|---|
| __construct() | Takes an arbitrary array of WP_Posts to wrap and (lazily) translate to Timber\Post instances. |
Class Methods #
__construct() #
Takes an arbitrary array of WP_Posts to wrap and (lazily) translate to Timber\Post instances.
__construct( array $posts )
| Name | Type | Description |
|---|---|---|
| $posts | \WP_Post[] | an array of WP_Post objects |