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

PHP-Alchemist / coreFiles / 15853257391

24 Jun 2025 02:27PM UTC coverage: 92.157%. First build
15853257391

Pull #9

github

druid628
Removes Json in favor of it moving to php-alchemist/json
Pull Request #9: [Release] v3.0.0

113 of 143 new or added lines in 14 files covered. (79.02%)

517 of 561 relevant lines covered (92.16%)

5.06 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