<?php
class Mapper
{
private $DBH;
public function __construct(PDO $DBH)
{
$this->DBH = $DBH;
}
public function getTimers()
{
$STH = $this->DBH->prepare("SELECT * FROM mainTable");
$STH->execute();
}
}
PD9waHAKCmNsYXNzIE1hcHBlcgp7CiAgICBwcml2YXRlICREQkg7CgogICAgcHVibGljIGZ1bmN0aW9uIF9fY29uc3RydWN0KFBETyAkREJIKQogICAgewogICAgICAgICR0aGlzLT5EQkggPSAkREJIOwogICAgfQoKICAgIHB1YmxpYyBmdW5jdGlvbiBnZXRUaW1lcnMoKQogICAgewogICAgICAgICRTVEggPSAkdGhpcy0+REJILT5wcmVwYXJlKCJTRUxFQ1QgKiBGUk9NIG1haW5UYWJsZSIpOwoKICAgICAgICAkU1RILT5leGVjdXRlKCk7CiAgICB9Cn0=