src/Time.php
public function getByTask($task_id, array $params = [])
    {
        $task_id = (int) $task_id;
        if ($task_id <= 0) {
            throw new Exception('Invalid param task_id');
        }
        return $this->rest->get("todo_items/$task_id/$this->action", $params);
    }
public function getByTask($task_id, array $params = [])
    {
        $task_id = (int) $task_id;
        if ($task_id <= 0) {
            throw new Exception('Invalid param task_id');
        }
        return $this->rest->get("todo_items/$task_id/$this->action", $params);
    }
public function getByTask ( $ task_id , array $ params = [ ] ) { $ task_id = ( int ) $ task_id ; if ( $ task_id <= 0 ) { throw new Exception ( 'Invalid param task_id' ) ; } return $ this -> rest -> get ( "todo_items/$task_id/$this->action" , $ params ) ; }
Retrieve all To-do Item Times

GET /todo_items/#{todo_item_id}/time_entries

Retrieves all of the time entries from a submitted todo item.

@param $task_id
@param array $params

@return \TeamWorkPm\Response\Model
@throws \TeamWorkPm\Exception
Retrieve all To - do Item Times