Update a2_klassen.php

This commit is contained in:
danielvici123
2025-04-02 11:56:05 +02:00
parent d2a30e38a0
commit 3629ce4570

View File

@@ -50,6 +50,7 @@ class teilzeit extends mitarbeiter {
public function __construct(string $n, string $gb, int $g, int $hpw, int $sl) { public function __construct(string $n, string $gb, int $g, int $hpw, int $sl) {
parent::__construct($n, $gb, $g); parent::__construct($n, $gb, $g);
$this->arbeitszeit = $hpw;
$this->gehalt = $this->gehalt + ($hpw * $sl * 4); // 4 Wochen pro Monat $this->gehalt = $this->gehalt + ($hpw * $sl * 4); // 4 Wochen pro Monat
$this->stundenlohn = $sl; $this->stundenlohn = $sl;
} }