public function setFactory(\Elcodi\Component\Core\Factory\Abstracts\AbstractFactory $factory)
    {
        $this->factory = $factory;

        return $this;
    }
public function setFactory(\Elcodi\Component\Core\Factory\Abstracts\AbstractFactory $factory)
    {
        $this->factory = $factory;

        return $this;
    }
public function setFactory ( \ Elcodi \ Component \ Core \ Factory \ Abstracts \ AbstractFactory $ factory ) { $ this -> factory = $ factory ; return $ this ; }
Sets Factory.

@param \Elcodi\Component\Core\Factory\Abstracts\AbstractFactory $factory Factory

@return $this Self object
Sets Factory .