| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Link |
||
| 11 | { |
||
| 12 | use ColorsTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Color |
||
| 16 | */ |
||
| 17 | protected $color; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Sets a coloring mode for the links between nodes. Possible values : |
||
| 21 | * 'source' - The color of the source node is used for the links to all target nodes. |
||
| 22 | * 'target' - The color of the target node is used for the link to its source nodes. |
||
| 23 | * 'gradient' - The link between a source and target node is colored as a gradient from the source node color |
||
| 24 | * to the target node color. |
||
| 25 | * 'none' - the default option; link colors will be set to the default (or a color as specified by the |
||
| 26 | * sankey.link.color.fill and sankey.link.color.fillOpacity options). |
||
| 27 | * |
||
| 28 | * This option overrides sankey.link.color. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $colorMode; |
||
| 33 | |||
| 34 | public function __construct() |
||
| 35 | { |
||
| 36 | $this->color = new Color(); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getColor(): Color |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return $this |
||
| 46 | */ |
||
| 47 | public function setColorMode(string $colorMode) |
||
| 52 | } |
||
| 53 | } |
||
| 54 |