| Total Complexity | 7 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class TimeEntry |
||
| 14 | { |
||
| 15 | private $http; |
||
| 16 | |||
| 17 | public function __construct(Client $http) |
||
| 20 | } |
||
| 21 | |||
| 22 | public function create(string $workspaceId, TimeEntryRequest $request): TimeEntryDtoImpl |
||
| 23 | { |
||
| 24 | $data = $this->http->post(" /workspaces/$workspaceId/time-entries", $request->toArray()); |
||
| 25 | |||
| 26 | return TimeEntryDtoImpl::fromArray($data); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function entry(string $workspaceId, string $id, array $params = []): TimeEntryDtoImpl |
||
| 42 | } |
||
| 43 | } |
||
| 44 |