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

PHP-Alchemist / coreFiles / 15422917341

03 Jun 2025 04:38PM UTC coverage: 92.356%. First build
15422917341

Pull #9

github

druid628
minimizes AbstractAssociativeArray to reduce duplication still have AbstractIndexed, AbstractKeyValuePair, and AbstractList to go
Pull Request #9: [Release] v3.0.0

134 of 167 new or added lines in 16 files covered. (80.24%)

592 of 641 relevant lines covered (92.36%)

4.53 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