Example #1
0
 /**
  * Adds Background to Feature
  *
  * @param   Background  $background background instance
  */
 public function setBackground(BackgroundNode $background)
 {
     $background->setFeature($this);
     $this->background = $background;
 }
 /**
  * Sets feature background.
  *
  * @param BackgroundNode $background Background instance
  *
  * @throws \LogicException if feature is frozen
  */
 public function setBackground(BackgroundNode $background)
 {
     if ($this->isFrozen()) {
         throw new \LogicException('Impossible to change frozen feature background.');
     }
     $background->setFeature($this);
     $this->background = $background;
 }