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
2declare(strict_types=1);
3/**
4 * Pop PHP Framework (https://www.popphp.org/)
5 *
6 * @link       https://github.com/popphp/popphp-framework
7 * @author     Nick Sagona, III <dev@noladev.com>
8 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
9 * @license    https://www.popphp.org/license     New BSD License
10 */
11
12/**
13 * @namespace
14 */
15namespace Pop\Image\Draw;
16
17use Pop\Color\Color;
18
19/**
20 * Draw interface
21 *
22 * @category   Pop
23 * @package    Pop\Image
24 * @author     Nick Sagona, III <dev@noladev.com>
25 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
26 * @license    https://www.popphp.org/license     New BSD License
27 * @version    5.0.0
28 */
29interface DrawInterface
30{
31
32    /**
33     * Set the opacity
34     *
35     * @param  int|float $opacity
36     * @return DrawInterface
37     */
38    public function setOpacity(int|float $opacity): DrawInterface;
39
40    /**
41     * Get the opacity
42     *
43     * @return mixed
44     */
45    public function getOpacity(): mixed;
46
47    /**
48     * Get fill color
49     *
50     * @return Color\ColorInterface
51     */
52    public function getFillColor(): Color\ColorInterface;
53
54    /**
55     * Get stroke color
56     *
57     * @return Color\ColorInterface
58     */
59    public function getStrokeColor(): Color\ColorInterface;
60
61    /**
62     * Get stroke width
63     *
64     * @return int
65     */
66    public function getStrokeWidth(): int;
67
68    /**
69     * Set fill color
70     *
71     * @param  Color\ColorInterface $color
72     * @return DrawInterface
73     */
74    public function setFillColor(Color\ColorInterface $color): DrawInterface;
75
76    /**
77     * Set stroke color
78     *
79     * @param  Color\ColorInterface $color
80     * @return DrawInterface
81     */
82    public function setStrokeColor(Color\ColorInterface $color): DrawInterface;
83
84    /**
85     * Get stroke width
86     *
87     * @param int $w
88     * @return DrawInterface
89     */
90    public function setStrokeWidth(int $w): DrawInterface;
91
92}