public setReflectionClassFactory ( closure $factory = null ) | ||
$factory | closure |
public function setReflectionClassFactory(\closure $factory = null)
{
$this->reflectionClassFactory = $factory ?: function ($class) {
return new \reflectionClass($class);
};
return $this;
}