printer = $printer; } public function print(): void { ( $this->printer )(); } }