for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\PieChart;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ColorTrait;
/**
* @author Christophe Meneses
*/
class PieSlice
{
use ColorTrait;
* How far to separate the slice from the rest of the pie, from 0.0 (not at all) to 1.0 (the pie's radius).
*
* @var float
protected $offset;
* Overrides the global pieSliceTextStyle for this slice.
* @var PieSliceTextStyle
protected $textStyle;
* PieSlice constructor.
public function __construct()
$this->textStyle = new PieSliceTextStyle();
}
* @return PieSliceTextStyle
public function getTextStyle()
return $this->textStyle;
* @param float $offset
* @return $this
public function setOffset($offset)
$this->offset = $offset;
return $this;