Same name and namespace in other branches
  1. 8.x-2.x src/ColorCMYK.php \Drupal\color_field\ColorCMYK::__construct()

Create a new CMYK color.

Paramètres

int $cyan: The cyan.

int $magenta: The magenta.

int $yellow: The yellow.

int $key: The key (black).

float $opacity: The opacity.

Overrides ColorCMY::__construct

Fichier

src/ColorCMYK.php, line 33

Classe

ColorCMYK
ColorCMYK represents the CMYK color format.

Namespace

Drupal\color_field

Code

public function __construct(int $cyan, int $magenta, int $yellow, int $key, float $opacity) {
    parent::__construct($cyan, $magenta, $yellow, $opacity);
    $this->key = $key;
}