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

bvlion / AppTanServer / 20205654148

14 Dec 2025 09:04AM UTC coverage: 25.627%. First build
20205654148

push

github

bvlion
format

12 of 49 new or added lines in 18 files covered. (24.49%)

143 of 558 relevant lines covered (25.63%)

0.8 hits per line

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

95.65
/src/Domain/SearchWordEvent/SearchWordEvent.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Domain\SearchWordEvent;
6

7
use JsonSerializable;
8

9
class SearchWordEvent implements JsonSerializable
10
{
11
  private ?int $id;
12
  private string $packageName;
13
  private string $word;
14
  private EventType $eventType;
15
  private float $eventWeight;
16
  private ?array $context;
17
  private ?\DateTime $timestamp;
18

19
  public function __construct(
20
    ?int $id,
21
    string $packageName,
22
    string $word,
23
    EventType $eventType,
24
    float $eventWeight = 1.0,
25
    ?array $context = null,
26
    ?\DateTime $timestamp = null
27
  ) {
28
    $this->id = $id;
6✔
29
    $this->packageName = $packageName;
6✔
30
    $this->word = $word;
6✔
31
    $this->eventType = $eventType;
6✔
32
    $this->eventWeight = $eventWeight;
6✔
33
    $this->context = $context;
6✔
34
    $this->timestamp = $timestamp;
6✔
35
  }
36

37
  public function getId(): ?int
38
  {
NEW
39
    return $this->id;
×
40
  }
41
  public function getPackageName(): string
42
  {
43
    return $this->packageName;
2✔
44
  }
45
  public function getWord(): string
46
  {
47
    return $this->word;
2✔
48
  }
49
  public function getEventType(): EventType
50
  {
51
    return $this->eventType;
4✔
52
  }
53
  public function getEventWeight(): float
54
  {
55
    return $this->eventWeight;
1✔
56
  }
57
  public function getContext(): ?array
58
  {
59
    return $this->context;
1✔
60
  }
61
  public function getTimestamp(): ?\DateTime
62
  {
63
    return $this->timestamp;
1✔
64
  }
65

66
  #[\ReturnTypeWillChange]
67
  public function jsonSerialize(): array
68
  {
69
    return [
2✔
70
      'id' => $this->id,
2✔
71
      'packageName' => $this->packageName,
2✔
72
      'word' => $this->word,
2✔
73
      'eventType' => $this->eventType->value,
2✔
74
      'eventWeight' => $this->eventWeight,
2✔
75
      'context' => $this->context,
2✔
76
      'timestamp' => $this->timestamp?->format(\DateTime::ATOM),
2✔
77
    ];
2✔
78
  }
79
}
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