Sets the name of the class that acts as a factory using the factory method, which will be invoked statically.
@api
string $factoryClass The factory class name:
Definition The current instance
public function setFactoryClass($factoryClass) {
$this->factoryClass = $factoryClass;
return $this;
}