* @copyright 2021 DIGITAL RETAIL TECHNOLOGIES SL * @license https://opensource.org/licenses/MIT The MIT License * * Don't forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. */ abstract class RetailcrmAbstractBuilder { /** * Checks if there is a key in the array and returns if there is an element array if not the default value * * @param string $key * @param string $default * * @return mixed */ protected function arrayValue($key, $default = '--') { return isset($this->dataCrm[$key]) && !empty($this->dataCrm[$key]) ? $this->dataCrm[$key] : $default; } }