Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace CMEN\GoogleChartsBundle\GoogleCharts\Charts\Diff; use CMEN\GoogleChartsB..

Decoded Output download

<?php

namespace CMEN\GoogleChartsBundle\GoogleCharts\Charts\Diff;

use CMEN\GoogleChartsBundle\GoogleCharts\Charts\PieChart;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ChartOptionsInterface;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Diff\DiffPieChart\DiffPieChartOptions;

/**
 * @author Christophe Meneses
 */
class DiffPieChart extends PieChart implements DiffChart
{
    /**
     * @var DiffPieChartOptions
     */
    protected ChartOptionsInterface $options;

    private PieChart $oldChart;

    private PieChart $newChart;

    public function __construct(PieChart $oldChart, PieChart $newChart)
    {
        parent::__construct();

        $this->options = new DiffPieChartOptions();

        $this->oldChart = $oldChart;
        $this->newChart = $newChart;
    }

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

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

        return $this;
    }

    public function getOldChart(): PieChart
    {
        return $this->oldChart;
    }

    public function getNewChart(): PieChart
    {
        return $this->newChart;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace CMEN\GoogleChartsBundle\GoogleCharts\Charts\Diff;

use CMEN\GoogleChartsBundle\GoogleCharts\Charts\PieChart;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ChartOptionsInterface;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Diff\DiffPieChart\DiffPieChartOptions;

/**
 * @author Christophe Meneses
 */
class DiffPieChart extends PieChart implements DiffChart
{
    /**
     * @var DiffPieChartOptions
     */
    protected ChartOptionsInterface $options;

    private PieChart $oldChart;

    private PieChart $newChart;

    public function __construct(PieChart $oldChart, PieChart $newChart)
    {
        parent::__construct();

        $this->options = new DiffPieChartOptions();

        $this->oldChart = $oldChart;
        $this->newChart = $newChart;
    }

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

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

        return $this;
    }

    public function getOldChart(): PieChart
    {
        return $this->oldChart;
    }

    public function getNewChart(): PieChart
    {
        return $this->newChart;
    }
}

Function Calls

None

Variables

None

Stats

MD5 0b559799ff0acf81b42521c13fb94bc1
Eval Count 0
Decode Time 94 ms