public function getSetting($key, $transform = null)
    {
        if (isset($transform[$key])) {
            return $transform[$key];
        }

        return $this[$key];
    }
public function getSetting($key, $transform = null)
    {
        if (isset($transform[$key])) {
            return $transform[$key];
        }

        return $this[$key];
    }
public function getSetting ( $ key , $ transform = null ) { if ( isset ( $ transform [ $ key ] ) ) { return $ transform [ $ key ] ; } return $ this [ $ key ] ; }
Get setting by key. If there is an override in transform, that is returned instead of the value in the model.

@param string     $key
@param array|null $transform

@return mixed
Get setting by key . If there is an override in transform that is returned instead of the value in the model .