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