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

jojo1981 / json-ast-builder / 17555252569

08 Sep 2025 03:05PM UTC coverage: 17.664%. Remained the same
17555252569

push

github

jojo1981
Fix: Make compatible with PHP versions: ^8.0|^8.1|^8.2|^8.3|^8.4. Closes #1
https://github.com/jojo1981/json-ast-builder/issues/1

89 of 408 new or added lines in 17 files covered. (21.81%)

355 existing lines in 25 files now uncovered.

189 of 1070 relevant lines covered (17.66%)

1.71 hits per line

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

0.0
/src/Ast/ElementNode.php
1
<?php
2
/*
3
 * This file is part of the jojo1981/json-ast-builder package
4
 *
5
 * Copyright (c) 2019 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
declare(strict_types=1);
11

12
namespace Jojo1981\JsonAstBuilder\Ast;
13

14
use Jojo1981\JsonAstBuilder\Visitor\VisitorInterface;
15

16
/**
17
 * @package Jojo1981\JsonAstBuilder\Ast
18
 */
19
final class ElementNode implements NodeInterface
20
{
21
    /** @var ValueNode */
22
    private ValueNode $value;
23

24
    public function __construct(ValueNode $valueNode)
25
    {
UNCOV
26
        $this->value = $valueNode;
×
27
    }
28

29
    /**
30
     * @return ValueNode
31
     */
32
    public function getValue(): ValueNode
33
    {
34
        return $this->value;
×
35
    }
36

37
    /**
38
     * @param ValueNode $value
39
     * @return void
40
     */
41
    public function setValue(ValueNode $value): void
42
    {
UNCOV
43
        $this->value = $value;
×
44
    }
45

46
    /**
47
     * @param VisitorInterface $visitor
48
     * @return mixed
49
     */
50
    public function accept(VisitorInterface $visitor): mixed
51
    {
UNCOV
52
        return $visitor->visitElementNode($this);
×
53
    }
54
}
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