Timber Logo

You are reading the documentation for Timber v2.x. Switch to the documentation for Timber v1.x.

Timber\​PostArrayObject

Overview #

This class extends ArrayObject
This class implements Timber\PostCollectionInterface, JsonSerializable

Methods #

NameReturn TypeSummary/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 )

NameTypeDescription
$posts\WP_Post[]an array of WP_Post objects