public function resolveChainModel($idChain,array $options = []) {
        $resolver = new OptionsResolver();
        $resolver->setDefaults([
            "base_path" => null,
            "sub_path" => null,
            "data" => [],
            "fileName" => null,
        ]);
        $resolver->setAllowedTypes("data","array");
        $options = $resolver->resolve($options);
        $chainModel = $this->getChainModel($idChain);
        $chainModel
            ->setExporterManager($this)
            ->setSubPath($options["sub_path"])
            ->setBasePath($options["base_path"])
            ;
        return $chainModel;
    }
public function resolveChainModel($idChain,array $options = []) {
        $resolver = new OptionsResolver();
        $resolver->setDefaults([
            "base_path" => null,
            "sub_path" => null,
            "data" => [],
            "fileName" => null,
        ]);
        $resolver->setAllowedTypes("data","array");
        $options = $resolver->resolve($options);
        $chainModel = $this->getChainModel($idChain);
        $chainModel
            ->setExporterManager($this)
            ->setSubPath($options["sub_path"])
            ->setBasePath($options["base_path"])
            ;
        return $chainModel;
    }
public function resolveChainModel ( $ idChain , array $ options = [ ] ) { $ resolver = new OptionsResolver ( ) ; $ resolver -> setDefaults ( [ "base_path" => null , "sub_path" => null , "data" => [ ] , "fileName" => null , ] ) ; $ resolver -> setAllowedTypes ( "data" , "array" ) ; $ options = $ resolver -> resolve ( $ options ) ; $ chainModel = $ this -> getChainModel ( $ idChain ) ; $ chainModel -> setExporterManager ( $ this ) -> setSubPath ( $ options [ "sub_path" ] ) -> setBasePath ( $ options [ "base_path" ] ) ; return $ chainModel ; }
Resuelve el modelo de exportacion y le establece los parametros
@param type $idChain
@param array $options
@return ChainModel
Resuelve el modelo de exportacion y le establece los parametros