yii\data\BaseDataProvider::setTotalCount PHP Method

setTotalCount() public method

Sets the total number of data models.
public setTotalCount ( integer $value )
$value integer the total number of data models.
    public function setTotalCount($value)
    {
        $this->_totalCount = $value;
    }