Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 4784249

Browse files
committed
Merge pull request #10 from siftware/feature/paginate-time-entries
Feature/paginate time entries
2 parents 2456d35 + 547a9dd commit 4784249

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Rossedman/Teamwork/Time.php

+11
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,15 @@ class Time extends AbstractObject {
1010

1111
protected $endpoint = 'time_entries';
1212

13+
/**
14+
* GET /time_entries.json
15+
*
16+
* @return mixed
17+
*/
18+
public function all($args = null)
19+
{
20+
$this->areArgumentsValid($args, ['page']);
21+
22+
return $this->client->get($this->endpoint, $args)->response();
23+
}
1324
}

0 commit comments

Comments
 (0)