Total Complexity | 8 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | trait EdgeConditionTrait |
||
17 | { |
||
18 | /** |
||
19 | * @inheritDoc |
||
20 | */ |
||
21 | public function getEdgeTypesOnly(): ?array |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @inheritDoc |
||
28 | */ |
||
29 | public function getEdgeTypesExcluded(): array |
||
30 | { |
||
31 | return $this->edgeTypesExclude; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @inheritDoc |
||
36 | */ |
||
37 | public function onlyEdgeTypes(?array $types): self |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | public function excludeEdgeTypes(array $types): self |
||
47 | { |
||
48 | $this->edgeTypesExclude = $types; |
||
49 | return $this; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @inheritDoc |
||
54 | */ |
||
55 | public function isSuitableEdge(EdgeInterface $edge): bool |
||
66 | } |
||
67 | } |
||
68 |