/**
  * {@inheritdoc}
  */
 protected function prepareContext(AbstractContext $context)
 {
     parent::prepareContext($context);
     if ($context instanceof Object2ArrayContext) {
         $context->setIgnoreNulls($this->isIgnoreNulls());
         $context->setReader($this->getReader() ?: new AccessorReader());
         $context->setNamingStrategy($this->getNamingStrategy() ?: new CamelCaseNamingStrategy());
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function prepareContext(AbstractContext $context)
 {
     parent::prepareContext($context);
     if ($context instanceof Array2ObjectContext) {
         $context->setWriter($this->getWriter() ?: new AccessorWriter());
         $context->setMatcher($this->getMatcher() ?: new CamelizeMatcher());
     }
 }