Skip to content

Commit b4fa59b

Browse files
Merge pull request #94 from renderforest/get-project-duration
src(ProjectData): add getProjectDuration method to ProjectData class
2 parents 224d5e9 + 7c1951e commit b4fa59b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/ProjectData.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,18 @@ public function getProjectColors()
157157
return $this->projectDataJson['data']['projectColors'];
158158
}
159159

160+
/**
161+
* Get the project duration.
162+
* @return array
163+
*/
164+
public function getProjectDuration()
165+
{
166+
return $this->projectDataJson['data']['duration'];
167+
}
168+
160169
/**
161170
* Set the project colors.
162-
* @param {Array} projectColors
171+
* @param array projectColors
163172
*/
164173
public function setProjectColors($projectColors)
165174
{

0 commit comments

Comments
 (0)