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

IlyasDeckers / ody-core / 13589380408

28 Feb 2025 01:41PM UTC coverage: 13.422% (-19.7%) from 33.151%
13589380408

push

github

IlyasDeckers
add support classes/methods (wip)

0 of 2412 new or added lines in 16 files covered. (0.0%)

544 of 4053 relevant lines covered (13.42%)

4.04 hits per line

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

0.0
/src/Support/Collection/MultipleItemsFoundException.php
1
<?php
2
declare(strict_types=1);
3

4
namespace Ody\Core\Support\Collection;
5

6
use RuntimeException;
7
use Throwable;
8

9
class MultipleItemsFoundException extends RuntimeException
10
{
11
    /**
12
     * The number of items found.
13
     */
14
    public int $count;
15

16
    /**
17
     * Create a new exception instance.
18
     *
19
     * @param null|Throwable $previous
20
     */
NEW
21
    public function __construct(int $count, int $code = 0, $previous = null)
×
22
    {
NEW
23
        $this->count = $count;
×
24

NEW
25
        parent::__construct("{$count} items were found.", $code, $previous);
×
26
    }
27

28
    /**
29
     * Get the number of items found.
30
     */
NEW
31
    public function getCount(): int
×
32
    {
NEW
33
        return $this->count;
×
34
    }
35
}
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