diff --git a/system/engine/factory.php b/system/engine/factory.php index bcefb90..a594245 100644 --- a/system/engine/factory.php +++ b/system/engine/factory.php @@ -39,11 +39,11 @@ class Factory { * Sets the name of the class to be instantiated by the factory. * * @param string $class The name of the class. - * @return void + * @return $this */ public function setClass($class) { $this->class = $class; - $this; + return $this; } /** @@ -68,4 +68,4 @@ class Factory { public function create(array $args = []) { return \Phacil\Framework\Registry::getInstance()->create($this->class, $args); } -} \ No newline at end of file +}