Skip to content

Commit

Permalink
Fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
const-cloudinary committed Nov 16, 2023
1 parent 43d146b commit 7e1d14a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
5 changes: 0 additions & 5 deletions src/Transformation/Background/AutoBackground.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ class AutoBackground extends Background
*/
const PREDOMINANT = 'predominant';

/**
* @var string $name The name.
*/
protected static $name = 'background';

/**
* @var string $type The type of the background color. Use the constants defined in this class.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Transformation/Background/Background.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class Background extends BaseQualifier
use AutoGradientBackgroundTrait;
use ColorValueTrait;

/**
* @var string $name The name.
*/
protected static $name = 'background';

/**
* Background constructor.
*
Expand Down
5 changes: 0 additions & 5 deletions src/Transformation/Background/BlurredBackground.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
*/
class BlurredBackground extends Background
{
/**
* @var string $name The name.
*/
protected static $name = 'background';

/**
* @var array $valueOrder The order of the values.
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Transformation/Background/GenerativeFillBackground.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class GenerativeFillBackground extends Background
const PROPERTIES = 'properties';

/**
* @var string $name The name.
* @var array $valueOrder The order of the values.
*/
protected static $name = 'background';
protected $valueOrder = [0, self::PROPERTIES];

/**
* GenerativeFillBackground constructor.
Expand All @@ -45,7 +45,7 @@ public function __construct($prompt = null, $ignoreForeground = null)
{
parent::__construct(self::GEN_FILL);

$this->getValue()->setSimpleValue(self::PROPERTIES, new ListQualifierMultiValue());
$this->value->setSimpleValue(self::PROPERTIES, new ListQualifierMultiValue());

$this->prompt($prompt);
$this->ignoreForeground($ignoreForeground);
Expand Down

0 comments on commit 7e1d14a

Please sign in to comment.