/** * Get the instance as an array. * * @return array */ public function toArray() { $commits = []; /** @var Commit $commit */ foreach ($this->log->getCommits() as $commit) { $commits[] = $this->commitToArray($commit); } return $commits; }
/** * {@inheritdoc} */ public function get($offset, $limit) { $this->log->setOffset($offset); $this->log->setLimit($limit); return $this->log->getCommits(); }