for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
/**
* @author Christophe Meneses
*/
class Gradient
{
* Start color for gradient.
*
* @var string
protected $color1;
* Finish color for gradient.
protected $color2;
* Where on the boundary to start the color1 gradient, relative to the upper left corner of the boundary.
protected $x1;
* Where on the boundary to end the color1 gradient, relative to the upper left corner of the boundary.
protected $y1;
* Where on the boundary to start the color2 gradient, relative to the upper left corner of the boundary.
protected $x2;
* Where on the boundary to end the color2 gradient, relative to the upper left corner of the boundary.
protected $y2;
* If true, the boundary for x1, y1, x2, and y2 is the box. If false, it's the entire chart.
* @var bool
protected $useObjectBoundingBoxUnits;
* @param string $color1
* @return $this
public function setColor1($color1)
$this->color1 = $color1;
return $this;
}
* @param string $color2
public function setColor2($color2)
$this->color2 = $color2;
* @param string $x1
public function setX1($x1)
$this->x1 = $x1;
* @param string $y1
public function setY1($y1)
$this->y1 = $y1;
* @param string $x2
public function setX2($x2)
$this->x2 = $x2;
* @param string $y2
public function setY2($y2)
$this->y2 = $y2;
* @param bool $useObjectBoundingBoxUnits
public function setUseObjectBoundingBoxUnits($useObjectBoundingBoxUnits)
$this->useObjectBoundingBoxUnits = $useObjectBoundingBoxUnits;