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:
parent
1a958f70fd
commit
6ff5043ce8
@ -1108,10 +1108,10 @@ the first read-only use-case:
|
|||||||
|
|
||||||
foreach($bugs AS $bug) {
|
foreach($bugs AS $bug) {
|
||||||
echo $bug->getDescription()." - ".$bug->getCreated()->format('d.m.Y')."\n";
|
echo $bug->getDescription()." - ".$bug->getCreated()->format('d.m.Y')."\n";
|
||||||
echo " Reported by: ".$bug->getReporter()->name."\n";
|
echo " Reported by: ".$bug->getReporter()->getName()."\n";
|
||||||
echo " Assigned to: ".$bug->getEngineer()->name."\n";
|
echo " Assigned to: ".$bug->getEngineer()->getName()."\n";
|
||||||
foreach($bug->getProducts() AS $product) {
|
foreach($bug->getProducts() AS $product) {
|
||||||
echo " Platform: ".$product->name."\n";
|
echo " Platform: ".$product->getName()."\n";
|
||||||
}
|
}
|
||||||
echo "\n";
|
echo "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user