24 lines
401 B
PHP
24 lines
401 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Endroid\QrCode\Color;
|
|
|
|
interface ColorInterface
|
|
{
|
|
public function getRed(): int;
|
|
|
|
public function getGreen(): int;
|
|
|
|
public function getBlue(): int;
|
|
|
|
public function getAlpha(): int;
|
|
|
|
public function getOpacity(): float;
|
|
|
|
public function getHex(): string;
|
|
|
|
/** @return array<string, int> */
|
|
public function toArray(): array;
|
|
}
|