Skip to content

Commit

Permalink
Update FuturePlanner.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pakomp authored Nov 21, 2017
1 parent 3c04322 commit fe3f442
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/FuturePlanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ class FuturePlanner
*
* @param ModelFuture $model
*/
public function __construct(ModelFuture $model)
public function __construct(ModelFuture $model, string $newFuture = null)
{
$this->model = $model;
$this->futures = $this->model->uncommittedFutures();
$this->newFuture = new Future;
if ($newFuture == null) {
$this->newFuture = new Future;
} else {
$this->newFuture = new $newFuture;
}
}

/**
Expand Down

0 comments on commit fe3f442

Please sign in to comment.