Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public function inheritDefaults(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;
 }