Skip to content

Commit c30c408

Browse files
committed
Fixed property access
1 parent b182546 commit c30c408

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Models/Traits/HasTitle.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ public function setTitle($title)
1515
return $this;
1616
}
1717

18+
public function getTitle()
19+
{
20+
return $this->title;
21+
}
22+
1823
protected function initTitle()
1924
{
2025
$this->title = $this->defaultTitle();

src/Models/TreeMapChartModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function setDistributed($distributed)
3333

3434
public function addBlock($title, $value, $extras = [])
3535
{
36-
return $this->addSeriesBlock($this->title, $title, $value, $extras);
36+
return $this->addSeriesBlock($this->getTitle(), $title, $value, $extras);
3737
}
3838

3939
public function addSeriesBlock($seriesName, $title, $value, $extras = [])

0 commit comments

Comments
 (0)