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

eiriksm / cosy-composer / 14089673278

26 Mar 2025 05:27PM UTC coverage: 86.366% (-0.1%) from 86.502%
14089673278

push

github

web-flow
Convert items in individual update to DTOs (#402)

16 of 21 new or added lines in 2 files covered. (76.19%)

1799 of 2083 relevant lines covered (86.37%)

44.8 hits per line

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

42.86
/src/IndividualUpdateItem.php
1
<?php
2

3
namespace eiriksm\CosyComposer;
4

5
class IndividualUpdateItem implements UpdateItemInterface
6
{
7
    /**
8
     * @var \stdClass
9
     */
10
    private $data;
11

12
    public function __construct(\stdClass $data)
13
    {
14
        $this->data = $data;
117✔
15
    }
16

17
    public function getPackageName()
18
    {
19
        return $this->data->name;
117✔
20
    }
21

22
    public function getNewVersion()
23
    {
NEW
24
        return $this->data->latest;
×
25
    }
26

27
    public function getVersion()
28
    {
NEW
29
        return $this->data->version;
×
30
    }
31

32
    public function setNewVersion(string $version)
33
    {
NEW
34
        $this->data->latest = $version;
×
35
    }
36

37
    public function getRawData()
38
    {
39
        return $this->data;
116✔
40
    }
41

42
    public function setVersion(string $version)
43
    {
NEW
44
        $this->data->version = $version;
×
45
    }
46
}
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