Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Enum::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Glamorous\ValueObjects;
4
5
use MyCLabs\Enum\Enum as VendorEnum;
6
7
abstract class Enum extends VendorEnum implements ValueObject
8
{
9
    /**
10
     * {@inheritdoc}
11
     *
12
     * @return mixed
13
     */
14
    public function toNative()
15
    {
16
        return $this->getValue();
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     *
22
     * @return string
23
     */
24
    public function __toString(): string
25
    {
26
        return parent::__toString();
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     *
32
     * @return bool
33
     */
34
    public function equalsTo(ValueObject $object): bool
35
    {
36
        if (get_class($this) !== get_class($object)) {
37
            return false;
38
        }
39
40
        return ($object instanceof VendorEnum) ? $this->equals($object) : false;
41
    }
42
}
43