Debian Codegraph @

src/Renderer/Eye/CompositeEye.php

raw
1 <?php
2 declare(strict_types = 1);
3
4 namespace BaconQrCode\Renderer\Eye;
5
6 use BaconQrCode\Renderer\Path\Path;
7
8 /**
9 * Combines the style of two different eyes.
10 */
11 final class CompositeEye implements EyeInterface
12 {
13 public function __construct(private readonly EyeInterface $externalEye, private readonly EyeInterface $internalEye)
14 {
15 }
16
17 public function getExternalPath() : Path
18 {
19 return $this->externalEye->getExternalPath();
20 }
21
22 public function getInternalPath() : Path
23 {
24 return $this->internalEye->getInternalPath();
25 }
26 }