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

Commit

Permalink
Merge pull request #10 from siftware/feature/paginate-time-entries
Browse files Browse the repository at this point in the history
Feature/paginate time entries
  • Loading branch information
rossedman committed Aug 7, 2015
2 parents 2456d35 + 547a9dd commit 4784249
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Rossedman/Teamwork/Time.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@ class Time extends AbstractObject {

protected $endpoint = 'time_entries';

/**
* GET /time_entries.json
*
* @return mixed
*/
public function all($args = null)
{
$this->areArgumentsValid($args, ['page']);

return $this->client->get($this->endpoint, $args)->response();
}
}

0 comments on commit 4784249

Please sign in to comment.