diff --git a/dibi/libs/DibiConnection.php b/dibi/libs/DibiConnection.php index 828d41f..043e38e 100644 --- a/dibi/libs/DibiConnection.php +++ b/dibi/libs/DibiConnection.php @@ -629,11 +629,12 @@ class DibiConnection extends DibiObject /** * @param IDibiProfiler - * @return void + * @return DibiConnection provides a fluent interface */ public function setProfiler(IDibiProfiler $profiler = NULL) { $this->profiler = $profiler; + return $this; } diff --git a/dibi/libs/DibiProfiler.php b/dibi/libs/DibiProfiler.php index 477bbf7..dfba97d 100644 --- a/dibi/libs/DibiProfiler.php +++ b/dibi/libs/DibiProfiler.php @@ -60,22 +60,24 @@ class DibiProfiler extends DibiObject implements IDibiProfiler /** * @param string filename - * @return void + * @return DibiProfiler provides a fluent interface */ public function setFile($file) { $this->file = $file; + return $this; } /** * @param int - * @return void + * @return DibiProfiler provides a fluent interface */ public function setFilter($filter) { $this->filter = (int) $filter; + return $this; } diff --git a/dibi/libs/DibiResult.php b/dibi/libs/DibiResult.php index f309b0d..27ecdea 100644 --- a/dibi/libs/DibiResult.php +++ b/dibi/libs/DibiResult.php @@ -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; }