mirror of
https://github.com/dg/dibi.git
synced 2025-08-13 17:44:11 +02:00
All setters provide a fluent interface now (i.e. return $this)
This commit is contained in:
@@ -485,11 +485,12 @@ class DibiResult extends DibiObject implements IDataSource
|
||||
* @param string column
|
||||
* @param string type (use constant Dibi::*)
|
||||
* @param string optional format
|
||||
* @return void
|
||||
* @return DibiResult provides a fluent interface
|
||||
*/
|
||||
final public function setType($col, $type, $format = NULL)
|
||||
{
|
||||
$this->xlat[$col] = array('type' => $type, 'format' => $format);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
@@ -510,12 +511,13 @@ class DibiResult extends DibiObject implements IDataSource
|
||||
/**
|
||||
* Define multiple columns types.
|
||||
* @param array
|
||||
* @return void
|
||||
* @return DibiResult provides a fluent interface
|
||||
* @internal
|
||||
*/
|
||||
final public function setTypes(array $types)
|
||||
{
|
||||
$this->xlat = $types;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user