1
0
mirror of synced 2025-01-18 06:21:40 +03:00

list_bugs.php needs to call to getters for protected vars

list_bugs.php needs to call to getters for protected vars. This was changed in the "getting-started" code repository, but not in the "getting-started" tutorial.
This commit is contained in:
Robert Broen 2013-06-17 11:36:09 +02:00
parent 1a958f70fd
commit 6ff5043ce8

View File

@ -1108,10 +1108,10 @@ the first read-only use-case:
foreach($bugs AS $bug) {
echo $bug->getDescription()." - ".$bug->getCreated()->format('d.m.Y')."\n";
echo " Reported by: ".$bug->getReporter()->name."\n";
echo " Assigned to: ".$bug->getEngineer()->name."\n";
echo " Reported by: ".$bug->getReporter()->getName()."\n";
echo " Assigned to: ".$bug->getEngineer()->getName()."\n";
foreach($bug->getProducts() AS $product) {
echo " Platform: ".$product->name."\n";
echo " Platform: ".$product->getName()."\n";
}
echo "\n";
}