Issues (1124)

src/StateRegistry.php (7 issues)

1
<?php declare(strict_types=1);
2
3
namespace Star\Component\State;
4
5
interface StateRegistry extends RegistryBuilder
0 ignored issues
show
Missing class doc comment
Loading history...
6
{
0 ignored issues
show
Opening brace should be on the same line as the declaration for interface StateRegistry
Loading history...
7
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
8
     * @param string $name The transition name
0 ignored issues
show
Parameter comment must end with a full stop
Loading history...
9
     *
10
     * @return StateTransition
11
     * @throws NotFoundException
0 ignored issues
show
Comment missing for @throws tag in function comment
Loading history...
12
     */
13
    public function getTransition(string $name): StateTransition;
14
15
    public function addAttribute(string $state, string $attribute): void;
16
17
    public function hasAttribute(string $state, string $attribute): bool;
18
19
    public function hasState(string $name): bool;
20
21
    public function transitionStartsFrom(string $transition, string $state): bool;
22
23
    public function acceptTransitionVisitor(TransitionVisitor $visitor): void;
24
25
    public function acceptStateVisitor(StateVisitor $visitor): void;
26
}
0 ignored issues
show
Expected //end interface
Loading history...
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
27