| 1 |
<?php |
| 2 |
declare(strict_types = 1); |
| 3 |
|
| 4 |
namespace BaconQrCode\Renderer\Module; |
| 5 |
|
| 6 |
use BaconQrCode\Encoder\ByteMatrix; |
| 7 |
use BaconQrCode\Renderer\Path\Path; |
| 8 |
|
| 9 |
/** |
| 10 |
* Interface describing how modules should be rendered. |
| 11 |
* |
| 12 |
* A module always receives a byte matrix (with values either being 1 or 0). It returns a path, where the origin |
| 13 |
* coordinate (0, 0) equals the top left corner of the first matrix value. |
| 14 |
*/ |
| 15 |
interface ModuleInterface |
| 16 |
{ |
| 17 |
public function createPath(ByteMatrix $matrix) : Path; |
| 18 |
} |