Content-aware padding with custom color palette * * @api */ class AutoBackgroundMode extends QualifierMultiValue { const VALUE_DELIMITER = '_'; const TYPE = 'type'; const CONTRAST = 'contrast'; protected $argumentOrder = [self::TYPE, self::CONTRAST]; /** * AutoBackgroundMode constructor. * * @param string $type The type of the background mode. */ public function __construct($type) { parent::__construct(); $this->type($type); } /** * Determines which color is automatically chosen for the background. * * @param string $type Use the constants defined in this class. * * @return AutoBackgroundMode */ public function type($type) { $this->setSimpleValue(self::TYPE, $type); return $this; } /** * Inverse the color. * * @return AutoBackgroundMode */ public function contrast() { return $this->setSimpleValue(self::CONTRAST, self::CONTRAST); } }