Lines 0.00% 0 / 3
Functions and Methods 0.00% 0 / 3
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
GetEntityRegistry 0.00% 0 / 3 0.00% 0 / 3 12 0.00% 0 / 1
 type 0.00% 0 / 1 0.00% 0 / 1 2
 describe 0.00% 0 / 1 0.00% 0 / 1 2
 toMessage 0.00% 0 / 1 0.00% 0 / 1 2
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Client\Connection\Command;
6
7final readonly class GetEntityRegistry implements HaCommand
8{
9    public function type(): string
10    {
11        return 'config/entity_registry/list';
12    }
13
14    public function describe(): string
15    {
16        return $this->type();
17    }
18
19    public function toMessage(): array
20    {
21        return ['type' => $this->type()];
22    }
23}