code: public function setSetting($strAttributeName, $objSetting)
      {
          if ($objSetting) {
              $this->arrSettings[$strAttributeName] = $objSetting->setParent($this);
          } else {
              unset($this->arrSettings[$strAttributeName]);
          }
  
          return $this;
      }
docs: {@inheritdoc}