public function setFactoryMode($factory = true) {
		$this->factoryMode = (bool) $factory;
		
		if ($this->factoryMode) {
			$this->reset();
		}
		
		return $this;
	}
public function setFactoryMode($factory = true) {
		$this->factoryMode = (bool) $factory;
		
		if ($this->factoryMode) {
			$this->reset();
		}
		
		return $this;
	}
public function setFactoryMode ( $ factory = true ) { $ this -> factoryMode = ( bool ) $ factory ; if ( $ this -> factoryMode ) { $ this -> reset ( ) ; } return $ this ; }
Set factory mode

@param  bool $factory
@return DefinitionInterface
Set factory mode