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

webeweb / jquery-datatables-bundle / 19800321758

30 Nov 2025 02:28PM UTC coverage: 99.666% (-0.1%) from 99.814%
19800321758

push

github

webeweb
Update GitHub action:
- restore Symfony 6.3

3581 of 3593 relevant lines covered (99.67%)

32.95 hits per line

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

0.0
/lib/common/Form/DataTransformer/Symfony7DataTransformer.php
1
<?php
2

3
/*
4
 * This file is part of the jquery-datatables-bundle package.
5
 *
6
 * (c) 2024 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types = 1);
13

14
namespace WBW\Bundle\CommonBundle\Form\DataTransformer;
15

16
use Throwable;
17

18
/**
19
 * Symfony 7.x data transformer.
20
 *
21
 * @author webeweb <https://github.com/webeweb>
22
 * @package WBW\Bundle\CommonBundle\Form\DataTransformer
23
 * @abstract
24
 */
25
abstract class Symfony7DataTransformer {
26

27
    /**
28
     * Decode a value.
29
     *
30
     * @param mixed|null $value The value.
31
     * @return mixed|null Returns the decoded value.
32
     * @throws Throwable Throws an exception if an error occurs.
33
     */
34
    abstract protected function decode($value);
35

36
    /**
37
     * Encode a value.
38
     *
39
     * @param mixed|null $value The value.
40
     * @return mixed|null Returns the encoded value.
41
     * @throws Throwable Throws an exception if an error occurs.
42
     */
43
    abstract protected function encode($value);
44

45
    /**
46
     * Reverse a transformed value.
47
     *
48
     * @param mixed|null $value The value.
49
     * @return mixed|null Returns the original value.
50
     * @throws Throwable Throws an exception if an error occurs.
51
     */
52
    public function reverseTransform(mixed $value): mixed {
53
        return $this->decode($value);
×
54
    }
55

56
    /**
57
     * Transform a value.
58
     *
59
     * @param mixed|null $value The value.
60
     * @return mixed|null Returns the transformed value.
61
     * @throws Throwable Throws an exception if an error occurs.
62
     */
63
    public function transform(mixed $value): mixed {
64
        return $this->encode($value);
×
65
    }
66
}
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