Completed
Pull Request — master (#1)
by Raymond
03:07
created

EventStreamFeedLink   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 24
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValidRelations() 0 11 1
1
<?php
2
3
namespace RayRutjes\GetEventStore\Client\Http\Feed;
4
5
final class EventStreamFeedLink extends AbstractFeedLink
6
{
7
    const LINK_SELF = 'self';
8
    const LINK_FIRST = 'first';
9
    const LINK_LAST = 'last';
10
    const LINK_PREVIOUS = 'previous';
11
    const LINK_NEXT = 'next';
12
    const LINK_METADATA = 'metadata';
13
14
    /**
15
     * @return array
16
     */
17
    protected function getValidRelations(): array
18
    {
19
        return [
20
            self::LINK_SELF,
21
            self::LINK_FIRST,
22
            self::LINK_LAST,
23
            self::LINK_PREVIOUS,
24
            self::LINK_NEXT,
25
            self::LINK_METADATA,
26
        ];
27
    }
28
}
29