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\Options\SankeyDiagram; use CMEN\Goo..

Decoded Output download

<?php

namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\SankeyDiagram;

use CMEN\GoogleChartsBundle\GoogleCharts\Options\ColorsTrait;

/**
 * @author Christophe Meneses
 */
class Link
{
    use ColorsTrait;

    /**
     * @var Color
     */
    protected $color;

    /**
     * Sets a coloring mode for the links between nodes. Possible values :
     *    'source' - The color of the source node is used for the links to all target nodes.
     *    'target' - The color of the target node is used for the link to its source nodes.
     *    'gradient' - The link between a source and target node is colored as a gradient from the source node color
     *          to the target node color.
     *    'none' - the default option; link colors will be set to the default (or a color as specified by the
     *          sankey.link.color.fill and sankey.link.color.fillOpacity options).
     *
     * This option overrides sankey.link.color.
     *
     * @var string
     */
    protected $colorMode;

    public function __construct()
    {
        $this->color = new Color();
    }

    public function getColor(): Color
    {
        return $this->color;
    }

    /**
     * @return $this
     */
    public function setColorMode(string $colorMode)
    {
        $this->colorMode = $colorMode;

        return $this;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\SankeyDiagram;

use CMEN\GoogleChartsBundle\GoogleCharts\Options\ColorsTrait;

/**
 * @author Christophe Meneses
 */
class Link
{
    use ColorsTrait;

    /**
     * @var Color
     */
    protected $color;

    /**
     * Sets a coloring mode for the links between nodes. Possible values :
     *    'source' - The color of the source node is used for the links to all target nodes.
     *    'target' - The color of the target node is used for the link to its source nodes.
     *    'gradient' - The link between a source and target node is colored as a gradient from the source node color
     *          to the target node color.
     *    'none' - the default option; link colors will be set to the default (or a color as specified by the
     *          sankey.link.color.fill and sankey.link.color.fillOpacity options).
     *
     * This option overrides sankey.link.color.
     *
     * @var string
     */
    protected $colorMode;

    public function __construct()
    {
        $this->color = new Color();
    }

    public function getColor(): Color
    {
        return $this->color;
    }

    /**
     * @return $this
     */
    public function setColorMode(string $colorMode)
    {
        $this->colorMode = $colorMode;

        return $this;
    }
}

Function Calls

None

Variables

None

Stats

MD5 a016f6d6f3a243386fd4578e4d5d8f48
Eval Count 0
Decode Time 78 ms