public function __construct($class) { if (is_string($class)) { $this->refl = new \ReflectionClass($class); } else { $this->refl = $class; } $this->obj = $this->refl->newInstanceWithoutConstructor(); }