chobie\Jira\Api\Result::getTotal PHP Method

getTotal() public method

Returns total number of records.
public getTotal ( ) : integer
return integer
    public function getTotal()
    {
        return $this->total;
    }

Usage Example

Beispiel #1
0
 /**
  * Sets result.
  *
  * @param Api\Result $result Result.
  *
  * @return void
  */
 protected function setResult(Api\Result $result)
 {
     $this->total = $result->getTotal();
     $this->offset = 0;
     $this->max = $result->getIssuesCount();
     $this->issues = $result->getIssues();
     $this->startAt++;
 }