Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function setDefaults(VariantInterface $masterVariant)
 {
     if (!$masterVariant->isMaster()) {
         throw new \InvalidArgumentException('Cannot inherit values from non master variant.');
     }
     if ($this->isMaster()) {
         throw new \LogicException('Master variant cannot inherit from another master variant.');
     }
     return $this;
 }