Skip to content

Commit

Permalink
improve get() method
Browse files Browse the repository at this point in the history
  • Loading branch information
nahid committed Oct 17, 2019
1 parent 59a7e4a commit f8dcb2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ public function toJson() : string
*/
public function get() : array
{
if (count($this->generatedData) == 0) {
$this->generatedData = $this->handle();
}
return $this->generatedData;
}

Expand Down

0 comments on commit f8dcb2c

Please sign in to comment.