PHP Class OpenSkill\Datatable\Data\ResponseData

Show file Open project: openskill/datatable Class Usage Examples

Public Methods

Method Description
__construct ( Collection $data, integer $totalDataCount, integer $dataCount = null ) ResponseData constructor.
data ( ) : Collection
filteredDataCount ( ) : integer
totalDataCount ( ) : integer

Method Details

__construct() public method

ResponseData constructor.
public __construct ( Collection $data, integer $totalDataCount, integer $dataCount = null )
$data Illuminate\Support\Collection the items that are returned from the provider
$totalDataCount integer the count of the total items that the provider started with
$dataCount integer the count of the total items that have been sorted out in search

data() public method

public data ( ) : Collection
return Illuminate\Support\Collection

filteredDataCount() public method

public filteredDataCount ( ) : integer
return integer

totalDataCount() public method

public totalDataCount ( ) : integer
return integer