final public setFormat ( $type, $format ) : self | ||
Résultat | self |
public final function setFormat($type, $format)
{
$this->formats[$type] = $format;
return $this;
}
/** * Result set factory. * @param ResultDriver * @return Result */ public function createResultSet(ResultDriver $resultDriver) { $res = new Result($resultDriver); return $res->setFormat(Type::DATE, $this->config['result']['formatDate'])->setFormat(Type::DATETIME, $this->config['result']['formatDateTime']); }