Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
AuthErrorCode
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 getMessage
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getCode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Auth\Domain\Exception;
4
5use App\Shared\Domain\Exception\BaseErrorCode;
6
7/**
8 * @author Wilhelm Zwertvaegher
9 */
10enum AuthErrorCode: string implements BaseErrorCode
11{
12    case INVALID_USERNAME = 'Invalid username';
13
14
15    public function getMessage(): string
16    {
17        return $this->value;
18    }
19
20    public function getCode(): string
21    {
22        return $this->name;
23    }
24}

Paths

Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once. Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

AuthErrorCode->getCode
22        return $this->name;
23    }
AuthErrorCode->getMessage
17        return $this->value;
18    }
{main}
3namespace App\Auth\Domain\Exception;
4
5use App\Shared\Domain\Exception\BaseErrorCode;
6
7/**
8 * @author Wilhelm Zwertvaegher
9 */
10enum AuthErrorCode: string implements BaseErrorCode
11{
12    case INVALID_USERNAME = 'Invalid username';
13
14
15    public function getMessage(): string
16    {
17        return $this->value;
18    }
19
20    public function getCode(): string
21    {
22        return $this->name;
23    }