<?php
require_once 'DisplayAbstract.php';

class 
TableDisplay extends DisplayAbstract
{
    protected function 
_displayHeader()
    {
        echo 
'<table border="1">';
    }

    protected function 
_displayBody()
    {
        foreach (
$this->getData() as $key => $value) {
            echo 
'<tr>';
            echo 
'<th>' $key '</th>';
            echo 
'<td>' $value '</td>';
            echo 
'</tr>';
        }
    }

    protected function 
_displayFooter()
    {
        echo 
'</table>';
    }
}