Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Color;
6
7/**
8 * Common contract for PDF color operands — used by ContentStream color operators.
9 *
10 * `getColorSpace()` returns the PDF name (DeviceRGB, DeviceCMYK, DeviceGray)
11 * and `toArray()` returns component values in the order PDF operators expect.
12 */
13interface ColorInterface
14{
15    /** @return array<int, float> */
16    public function toArray(): array;
17    public function getColorSpace(): string;
18}