public function __construct($path, array $options) { $this->path = $path; $resolver = new OptionsResolver(); $this->setDefaultOptions($resolver); $this->options = $resolver->resolve($options); }