PhpOffice\PhpPresentation\Shape\Chart::getLegend PHP Method

getLegend() public method

Get Legend
public getLegend ( ) : PhpOffice\PhpPresentation\Shape\Chart\Legend
return PhpOffice\PhpPresentation\Shape\Chart\Legend
    public function getLegend()
    {
        return $this->legend;
    }

Usage Example

Example #1
0
 public function testConstruct()
 {
     $object = new Chart();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Title', $object->getTitle());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Legend', $object->getLegend());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->getPlotArea());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\View3D', $object->getView3D());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Shape\Chart::getLegend