PHP Class Sulu\Component\SmartContent\Rest\ItemCollectionRepresentation

Inheritance: extends Hateoas\Representation\CollectionRepresentation
Exibir arquivo Open project: sulu/sulu

Public Methods

Method Description
__construct ( array $items, $datasource )
getDatasource ( ) : Sulu\Component\SmartContent\ItemInterface Returns datasource of smart content item collection.
getTotal ( ) : integer Returns amount of items.

Method Details

__construct() public method

public __construct ( array $items, $datasource )
$items array

getDatasource() public method

Returns datasource of smart content item collection.
public getDatasource ( ) : Sulu\Component\SmartContent\ItemInterface
return Sulu\Component\SmartContent\ItemInterface

getTotal() public method

Returns amount of items.
public getTotal ( ) : integer
return integer