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

PHP-Alchemist / coreFiles / 15853191360

24 Jun 2025 02:24PM UTC coverage: 92.411%. First build
15853191360

Pull #9

github

druid628
Updates Changeslog. Still needs to remove json functionality in favor of moving to library
Pull Request #9: [Release] v3.0.0

144 of 175 new or added lines in 16 files covered. (82.29%)

548 of 593 relevant lines covered (92.41%)

4.95 hits per line

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

44.44
/src/ValueObject/Abstract/AbstractVONumber.php
1
<?php
2

3
namespace PHPAlchemist\ValueObject\Abstract;
4

5
use PHPAlchemist\ValueObject\Contract\VONumberInterface;
6

7
abstract class AbstractVONumber implements VONumberInterface
8
{
9
    protected readonly int $value;
10

11
    public function __construct(int $value)
2✔
12
    {
13
        $this->value = $value;
2✔
14
    }
15

NEW
16
    public function equals(VONumberInterface $number) : bool
×
17
    {
18
        if (
NEW
19
            $number === $this
×
NEW
20
            && $number->getValue() === $this->getValue()
×
21
        ) {
NEW
22
            return true;
×
23
        }
24

NEW
25
        return false;
×
26
    }
27

28
    public function getValue() : int|float
2✔
29
    {
30
        return $this->value;
2✔
31
    }
32
}
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

© 2025 Coveralls, Inc