mirror of
https://github.com/janunger/rheinwerk-video-training.git
synced 2026-02-06 15:15:15 +01:00
Initiale Version
This commit is contained in:
16
Kapitel_4/Lektion_6/src/Geburtstagskuchen.php
Normal file
16
Kapitel_4/Lektion_6/src/Geburtstagskuchen.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
class Geburtstagskuchen extends Kuchen
|
||||
{
|
||||
private $anzahlKerzen = 0;
|
||||
|
||||
public function bringeKerzenAn($anzahl)
|
||||
{
|
||||
$this->anzahlKerzen = $anzahl;
|
||||
}
|
||||
|
||||
public function getAnzahlKerzen()
|
||||
{
|
||||
return $this->anzahlKerzen;
|
||||
}
|
||||
}
|
||||
16
Kapitel_4/Lektion_6/src/Kuchen.php
Normal file
16
Kapitel_4/Lektion_6/src/Kuchen.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
class Kuchen
|
||||
{
|
||||
private $geschmacksrichtung;
|
||||
|
||||
public function __construct($geschmacksrichtung)
|
||||
{
|
||||
$this->geschmacksrichtung = $geschmacksrichtung;
|
||||
}
|
||||
|
||||
public function getGeschmacksrichtung()
|
||||
{
|
||||
return $this->geschmacksrichtung;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user