comsave/soap-client

View on GitHub
src/Phpforce/SoapClient/Result/QueryResult.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Phpforce\SoapClient\Result;

/**
 * Query result
 */
class QueryResult
{
    protected $done;
    protected $queryLocator;
    protected $records = array();
    protected $size;

    /**
     * @return boolean
     */
    public function isDone()
    {
        return $this->done;
    }

    /**
     * @return string
     */
    public function getQueryLocator()
    {
        return $this->queryLocator;
    }

    /**
     * @return array
     */
    public function getRecords()
    {
        return $this->records;
    }

    /**
     * @return int
     */
    public function getSize()
    {
        return $this->size;
    }

    public function getRecord($index)
    {
        if (isset($this->records[$index])) {
            return $this->records[$index];
        }
    }
}