| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Sankey |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * With multilevel sankeys, it's sometimes nonobvious where nodes should be placed for optimal readability. The D3 |
||
| 12 | * layout engine experiments with different node layouts, stopping when sankey.iterations attempts have been made. |
||
| 13 | * The larger this number, the more pleasing the layout of complex sankeys, but it comes with a cost: the sankeys |
||
| 14 | * will take longer to render. Conversely, the shorter this number, the quicker your charts will render. |
||
| 15 | * |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | protected $iterations; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Link |
||
| 22 | */ |
||
| 23 | protected $link; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var Node |
||
| 27 | */ |
||
| 28 | protected $node; |
||
| 29 | |||
| 30 | public function __construct() |
||
| 31 | { |
||
| 32 | $this->link = new Link(); |
||
| 33 | $this->node = new Node(); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getLink(): Link |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getNode(): Node |
||
| 42 | { |
||
| 43 | return $this->node; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function setIterations(int $iterations) |
||
| 54 | } |
||
| 55 | } |
||
| 56 |