diff --git a/src/Chart.php b/src/Chart.php index e9964f9..5e05588 100644 --- a/src/Chart.php +++ b/src/Chart.php @@ -46,7 +46,7 @@ class Chart extends View protected $datasets; /** @var ColorGenerator */ - public $colorGenerator; + protected $colorGenerator; protected function init(): void { diff --git a/src/ColorGenerator.php b/src/ColorGenerator.php index b8af727..64b1bb4 100644 --- a/src/ColorGenerator.php +++ b/src/ColorGenerator.php @@ -16,7 +16,7 @@ class ColorGenerator * * @var array> */ - public $colors = [ + protected $colors = [ ['rgba(255, 99, 132, 0.2)', 'rgba(255, 99, 132, 1)'], ['rgba(54, 162, 235, 0.2)', 'rgba(54, 162, 235, 1)'], ['rgba(255, 206, 86, 0.2)', 'rgba(255, 206, 86, 1)'],