コード例 #1
0
ファイル: FeatureNode.php プロジェクト: jefftulsa/Behat
 /**
  * Adds Background to Feature
  *
  * @param   Background  $background background instance
  */
 public function setBackground(BackgroundNode $background)
 {
     $background->setFeature($this);
     $this->background = $background;
 }
コード例 #2
0
 /**
  * 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;
 }