public function __construct($class) { try { $this->class = new ReflectionClass($class); } catch (ReflectionException $e) { throw new UnexpectedValueException($e); } }