qualifiers[CropMode::getName()]->getValue() != CropMode::SCALE) { throw new InvalidArgumentException( "Liquid Rescaling is not supported for {$this->qualifiers[CropMode::getName()]->getValue()}" ); } $this->addQualifier(new LiquidRescaling()); return $this; } }