Issues (15)

src/Node/NodeInterface.php (2 issues)

1
<?php
2
/**
3
 * Copyright © 2018 Thomas Klein, All right reserved.
4
 */
5
6
namespace LogicTree\Node;
7
8
/**
9
 * Interface NodeInterface
10
 * @api
11
 */
12
interface NodeInterface
13
{
14
    /**
15
     * Retrieve the operator
16
     *
17
     * @return string
18
     */
19
    public function getOperator(): string;
20
21
    /**
22
     * Set the operator
23
     *
24
     * @param string $operator
25
     * @return \LogicTree\Node\NodeInterface
26
     */
27
    public function setOperator(string $operator);//: NodeInterface;
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
28
29
    /**
30
     * Retrieve the parent combine
31
     *
32
     * @return \LogicTree\Node\CombineInterface|null
33
     */
34
    public function getParent(): ?CombineInterface;
35
36
    /**
37
     * Set the parent combine
38
     *
39
     * @param \LogicTree\Node\CombineInterface|null $condition
40
     * @return \LogicTree\Node\NodeInterface
41
     */
42
    public function setParent(?CombineInterface $condition);//: NodeInterface;
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
43
44
    /**
45
     * Check if it has an existing parent
46
     *
47
     * @return bool
48
     */
49
    public function hasParent(): bool;
50
}
51