Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 311 Bytes
<?php
abstract class DataMapper
{
protected $_pdo;
function __construct(PDO $pdo)
{
$this->_pdo = $pdo;
}
protected function _decorate(PDOStatement $stmt)
{
$stmt->setFetchMode(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE, static::MODEL_CLASS);
return $stmt;
}
}