mirror of
https://github.com/janunger/rheinwerk-video-training.git
synced 2026-02-06 07:05:14 +01:00
Initiale Version
This commit is contained in:
14
Kapitel_4/Lektion_6/index.php
Normal file
14
Kapitel_4/Lektion_6/index.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
require __DIR__ . '/autoload.php';
|
||||
|
||||
$kuchen = new Kuchen('Schokolade');
|
||||
var_dump($kuchen->getGeschmacksrichtung());
|
||||
|
||||
$kuchen2 = new Geburtstagskuchen('Erdbeer');
|
||||
var_dump($kuchen2->getGeschmacksrichtung());
|
||||
|
||||
var_dump($kuchen2->getAnzahlKerzen());
|
||||
|
||||
$kuchen2->bringeKerzenAn(3);
|
||||
var_dump($kuchen2->getAnzahlKerzen());
|
||||
Reference in New Issue
Block a user