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

jojo1981 / decoder-aggregate / 12712243989

10 Jan 2025 03:19PM UTC coverage: 100.0%. Remained the same
12712243989

push

github

jojo1981
Use GitHub actions workflow for CI instead of Travis CI.

112 of 112 relevant lines covered (100.0%)

4.81 hits per line

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

100.0
/src/EncodeDecoderRegistryInterface.php
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of the jojo1981/decoder-aggregate package
4
 *
5
 * Copyright (c) 2021 Joost Nijhuis <jnijhuis81@gmail.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed in the root of the source code
9
 */
10
namespace Jojo1981\DecoderAggregate;
11

12
use Jojo1981\DecoderAggregate\Exception\EncodeDecoderRegistryException;
13

14
/**
15
 * @package Jojo1981\DecoderAggregate
16
 */
17
interface EncodeDecoderRegistryInterface
18
{
19
    /**
20
     * @param string $format
21
     * @param EncoderInterface $encoder
22
     * @return void
23
     * @throws EncodeDecoderRegistryException
24
     */
25
    public function registerEncoder(string $format, EncoderInterface $encoder): void;
26

27
    /**
28
     * @param string $format
29
     * @param DecoderInterface $decoder
30
     * @return void
31
     * @throws EncodeDecoderRegistryException
32
     */
33
    public function registerDecoder(string $format, DecoderInterface $decoder): void;
34

35
    /**
36
     * @param string $format
37
     * @return bool
38
     */
39
    public function hasEncoder(string $format): bool;
40

41
    /**
42
     * @param string $format
43
     * @return bool
44
     */
45
    public function hasDecoder(string $format): bool;
46

47
    /**
48
     * @param string $format
49
     * @return EncoderInterface
50
     * @throws EncodeDecoderRegistryException
51
     */
52
    public function getEncoder(string $format): EncoderInterface;
53

54
    /**
55
     * @param string $format
56
     * @return DecoderInterface
57
     * @throws EncodeDecoderRegistryException
58
     */
59
    public function getDecoder(string $format): DecoderInterface;
60
}
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