public function getPdoType() { switch ($this->getPHPType()) { case 'boolean': return PDO::PARAM_BOOL; case 'integer': return PDO::PARAM_INT; case 'string': return PDO::PARAM_STR; } return PDO::PARAM_STR; }