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

lmc-eu / matej-client-php / 7523813420

20 Oct 2022 11:42AM UTC coverage: 100.0%. Remained the same
7523813420

push

github

OndraM
Block fixup commits from accidental merge

746 of 746 relevant lines covered (100.0%)

23.34 hits per line

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

100.0
/src/Model/Command/AbstractCommand.php
1
<?php declare(strict_types=1);
2

3
namespace Lmc\Matej\Model\Command;
4

5
abstract class AbstractCommand implements \JsonSerializable
6
{
7
    /**
8
     * Get command type identifier. Must be one of those defined by Matej API schema.
9
     */
10
    abstract protected function getCommandType(): string;
11

12
    /**
13
     * Get data content of the command. Must follow the format defined by Matej API schema.
14
     */
15
    abstract protected function getCommandParameters(): array;
16

17
    public function jsonSerialize(): array
18
    {
19
        return [
105✔
20
            'type' => $this->getCommandType(),
175✔
21
            'parameters' => $this->getCommandParameters(),
175✔
22
        ];
105✔
23
    }
24
}
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