app/Module/HourglassChartModule.php
protected function chart(Individual $individual, int $generations, bool $show_spouse): ResponseInterface
    {
        $this->layout = 'layouts/ajax';

        return $this->viewResponse('modules/hourglass-chart/chart', [
            'generations' => $generations,
            'individual'  => $individual,
            'show_spouse' => $show_spouse,
        ]);
    }
protected function chart(Individual $individual, int $generations, bool $show_spouse): ResponseInterface
    {
        $this->layout = 'layouts/ajax';

        return $this->viewResponse('modules/hourglass-chart/chart', [
            'generations' => $generations,
            'individual'  => $individual,
            'show_spouse' => $show_spouse,
        ]);
    }
protected function chart ( Individual $ individual , int $ generations , bool $ show_spouse ) : ResponseInterface { $ this -> layout = 'layouts/ajax' ; return $ this -> viewResponse ( 'modules/hourglass-chart/chart' , [ 'generations' => $ generations , 'individual' => $ individual , 'show_spouse' => $ show_spouse , ] ) ; }
Generate the initial generations of the chart

@param Individual $individual
@param int        $generations
@param bool       $show_spouse

@return ResponseInterface
Generate the initial generations of the chart