Decoded Output

Download
<?php

namespace CMEN\GoogleChartsBundle\GoogleCharts\Charts;

use CMEN\GoogleChartsBundle\GoogleCharts\Chart;
use CMEN\GoogleChartsBundle\GoogleCharts\EventType;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ChartOptionsInterface;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\GeoChart\GeoChartOptions;

/**
 * @author Christophe Meneses
 */
class GeoChart extends Chart
{
    /**
     * @var GeoChartOptions
     */
    protected ChartOptionsInterface $options;

    public function __construct()
    {
        parent::__construct();

        $this->options = new GeoChartOptions();
    }

    public function getType(): string
    {
        return 'GeoChart';
    }

    public function getPackage(): string
    {
        return 'geochart';
    }

    public function getAvailableEventTypes(): array
    {
        return [
            EventType::ERROR,
            EventType::READY,
            EventType::REGION_CLICK,
            EventType::SELECT,
        ];
    }

    public function getOptions(): GeoChartOptions
    {
        return $this->options;
    }

    /**
     * @param GeoChartOptions $options
     */
    public function setOptions(ChartOptionsInterface $options): GeoChart
    {
        $this->options = $options;

        return $this;
    }
}
 ?>

Function Calls

None

Variables

None

Stats

MD5b9517b574a4d5ad7849117692b6e4cef
Eval Count0
Decode Time100 ms

Original Code

<?php

namespace CMEN\GoogleChartsBundle\GoogleCharts\Charts;

use CMEN\GoogleChartsBundle\GoogleCharts\Chart;
use CMEN\GoogleChartsBundle\GoogleCharts\EventType;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ChartOptionsInterface;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\GeoChart\GeoChartOptions;

/**
 * @author Christophe Meneses
 */
class GeoChart extends Chart
{
    /**
     * @var GeoChartOptions
     */
    protected ChartOptionsInterface $options;

    public function __construct()
    {
        parent::__construct();

        $this->options = new GeoChartOptions();
    }

    public function getType(): string
    {
        return 'GeoChart';
    }

    public function getPackage(): string
    {
        return 'geochart';
    }

    public function getAvailableEventTypes(): array
    {
        return [
            EventType::ERROR,
            EventType::READY,
            EventType::REGION_CLICK,
            EventType::SELECT,
        ];
    }

    public function getOptions(): GeoChartOptions
    {
        return $this->options;
    }

    /**
     * @param GeoChartOptions $options
     */
    public function setOptions(ChartOptionsInterface $options): GeoChart
    {
        $this->options = $options;

        return $this;
    }
}