public function __construct(callable $renderer, $heading) { $this->renderer = $renderer; $this->heading = $heading; }