diff --git a/src/Sprint/Sprint.php b/src/Sprint/Sprint.php index 6be077f..d0c6973 100644 --- a/src/Sprint/Sprint.php +++ b/src/Sprint/Sprint.php @@ -1,4 +1,5 @@ originBoardId = strval($originBoardId); return $this; } + public function setStartDateAsDateTime(DateTimeInterface $startDate, $format = 'Y-m-d'): static { $this->startDate = $startDate->format($format); diff --git a/src/Sprint/SprintService.php b/src/Sprint/SprintService.php index 983e361..c2e6bb2 100644 --- a/src/Sprint/SprintService.php +++ b/src/Sprint/SprintService.php @@ -1,4 +1,5 @@ json_mapper->map( $json, @@ -35,7 +35,7 @@ public function getSprintFromJSON(object $json) : Sprint return $sprint; } - public function getSprint(string|int $sprintId) :Sprint + public function getSprint(string|int $sprintId): Sprint { $ret = $this->exec($this->uri.'/'.$sprintId, null); @@ -48,7 +48,6 @@ public function getSprint(string|int $sprintId) :Sprint } /** - * * @throws JiraException * @throws \JsonMapper_Exception * @@ -67,7 +66,7 @@ public function getSprintIssues(string|int $sprintId, array $paramArray = []) return $issues; } - public function createSprint(Sprint $sprint) : Sprint + public function createSprint(Sprint $sprint): Sprint { $data = json_encode($sprint);