Completed
Pull Request — master (#1)
by Raymond
02:20
created

getValidRelations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 12
Ratio 100 %
Metric Value
dl 12
loc 12
rs 9.4285
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
3
namespace RayRutjes\GetEventStore\Client\Http\Feed;
4
5 View Code Duplication
final class EventStreamViaPersistentSubscriptionFeedLink extends AbstractFeedLink
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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_ACK_ALL = 'ackAll';
13
    const LINK_NACK_ALL = 'nackAll';
14
15
    /**
16
     * @return array
17
     */
18
    protected function getValidRelations(): array
19
    {
20
        return [
21
            self::LINK_SELF,
22
            self::LINK_FIRST,
23
            self::LINK_LAST,
24
            self::LINK_PREVIOUS,
25
            self::LINK_NEXT,
26
            self::LINK_ACK_ALL,
27
            self::LINK_NACK_ALL,
28
        ];
29
    }
30
}
31