Sets the total rows to paginate.

@param integer $value The rows total to set.

@return Pagination A self instance for method chain calls
356422
public function setTotal($value)
    {
        if (!StaticValidator::isValid('number', $value)) {
            return $this;
        }

        $this->_total = StaticFilter::filter('number',$value);
        $this->_pages = ceil($this->_total / $this->_rowsPerPage);
        return $this;
    }
805800
public function set($value)
        {
            $this->validate($value);
            $this->original = $value;
            $this->current = $value;
            $this->chaining = false;
            $this->chain = null;
            return $this;
        }
990697
public function setSentCountActual($value = null)
    {
        if ($value === null || $value === '' || $value === false) {
            $this->sentCountActual = null;
        } else {
            $this->sentCountActual = (int) $value;
        }

        return $this;
    }
364005
public function addDealerShedulesId($value)
    {
        $currentArray = $this->getDealerShedulesIds();
        $currentArray []= $value;
        $this->setDealerShedulesIds($currentArray);

        return $this;
    }
711275
public function setQueueId(?int $value) : Job
    {

        if ($this->data['queue_id'] !== $value) {
            $this->data['queue_id'] = $value;
            $this->setModified('queue_id');
        }

        return $this;
    }
1024246
public function setValue($value): AbstractPart
    {
        if ($value instanceof AbstractPart) {
            $value = $value->getValue();
        }

        $this->value = $value;

        return $this;
    }
598220
public function setValue($value)
	{
		$this->value = $value;

		if ( ! is_array($value) )
		{
			$value = [$value];
		}

		$this->recursiveAssignValue($value, $this->getContents());

		return $this;
	}
1008539
public function setCurrent($value)
    {
        if (StaticValidator::validates('number', $value)) {
            $this->current = StaticFilter::filter('number',$value);
            $this->offset = $this->rowsPerPage * ($this->current - 1);
        }
        return $this;
    }
470049
public function setPaymentMethodDetails($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['PaymentMethodDetails']['FieldValue'] = $value;
        return $this;
    }
1029781
public function setShippingAmount($value)
    {
        $this->data->amount->subtotals->shipping = (float) $value;

        return $this;
    }
780163
public function setId(int $value) : Setting
    {

        if ($this->data['id'] !== $value) {
            $this->data['id'] = $value;
            $this->setModified('id');
        }

        return $this;
    }
1287343
public function setCoreServerProtocol($value)
    {
        $this->setFieldName('server_protocol');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
848806
public function setCorePhpthumbCacheMaxage($value)
    {
        $this->setFieldName('phpthumb_cache_maxage');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
280998
public function setOrderItems($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['OrderItems']['FieldValue'] = $value;
        return $this;
    }
978286
public function decrementMemberCount($value){
        if(!is_integer($value)){
            return $this;
        }
        $new_value = $this->count_members - $value;
        if($new_value < 0){
            $new_value = 0;
        }
        $this->count_members = $new_value;
        return $this;
    }
1308501
protected function setOriginalPage(Page $value = null)
    {
        $this->originalPage = $value === null || $value->isError() ? null : $value;

        return $this;
    }
681110
public function set($value = null)
    {
        //get args
        $args = func_get_args();
        
        if (count($args) < 2) {
            return $this;
        }
        
        $value = array_pop($args);
        $last = array_pop($args);
        
        $pointer = &$this->data;
        foreach ($args as $i => $step) {
            if (!isset($pointer[$step])
                || !is_array($pointer[$step])
            ) {
                $pointer[$step] = array();
            }

            $pointer = &$pointer[$step];
        }
        
        $pointer[$last] = $value;
        
        return $this;
    }