• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

harmim / images / #1409

pending completion
#1409

push

harmim
Fix tests coverage in GitHub Actions

203 of 276 relevant lines covered (73.55%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.0
/src/Image.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * @author Dominik Harmim <harmim6@gmail.com>
7
 */
8

9
namespace Harmim\Images;
10

11
use Nette;
12

13

14
/**
15
 * @property string $src
16
 * @property int $width
17
 * @property int $height
18
 */
19
class Image
20
{
21
        use Nette\SmartObject;
22

23

24
        private string $src;
25

26
        private int $width;
27

28
        private int $height;
29

30

31
        public function __construct(string $src, int $width, int $height)
1✔
32
        {
33
                $this->src = $src;
1✔
34
                $this->width = $width;
1✔
35
                $this->height = $height;
1✔
36
        }
1✔
37

38

39
        public function getSrc(): string
40
        {
41
                return $this->src;
×
42
        }
43

44

45
        public function setSrc(string $src): self
46
        {
47
                $this->src = $src;
×
48

49
                return $this;
×
50
        }
51

52

53
        public function getWidth(): int
54
        {
55
                return $this->width;
×
56
        }
57

58

59
        public function setWidth(int $width): self
60
        {
61
                $this->width = $width;
×
62

63
                return $this;
×
64
        }
65

66

67
        public function getHeight(): int
68
        {
69
                return $this->height;
×
70
        }
71

72

73
        public function setHeight(int $height): self
74
        {
75
                $this->height = $height;
×
76

77
                return $this;
×
78
        }
79

80

81
        public function __toString(): string
82
        {
83
                return $this->src;
1✔
84
        }
85
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc