Beispiel #1
0
 public function __construct(LeadConversionConfig $config = null)
 {
     if ($config === null) {
         $config = new LeadConversionConfig();
     }
     parent::__construct($config);
 }
 public function internalize(array $params)
 {
     if (isset($params['originUrl'])) {
         $this->originUrl = $params['originUrl'];
     }
     if (isset($params['redirectUrl'])) {
         $this->redirectUrl = $params['redirectUrl'];
     }
     if (isset($params['converter']) && is_array($params['converter'])) {
         $this->converter->internalize($params['converter']);
     }
     if (isset($params['exception']) && is_array($params['exception'])) {
         $this->exception = new EntityConversionException();
         $this->exception->internalize($params['exception']);
     }
 }