protected function createFactory($class) { $reflection = new \ReflectionClass($class); $content = $this->view->make('test-factory-helper::factory', ['reflection' => $reflection, 'properties' => $this->properties])->render(); return $content; }