Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
CRAP
100.00% covered (success)
100.00%
1 / 1
TempFile
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
5
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getPath
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getOriginalFilename
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMime
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getExtension
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Shared\Domain\Model;
4
5/**
6 * @author Wilhelm Zwertvaegher
7 */
8final readonly class TempFile
9{
10    public function __construct(private string $path, private string $originalFilename, private string $mime, private string $extension)
11    {
12    }
13
14    public function getPath(): string
15    {
16        return $this->path;
17    }
18
19    public function getOriginalFilename(): string
20    {
21        return $this->originalFilename;
22    }
23
24    public function getMime(): string
25    {
26        return $this->mime;
27    }
28
29    public function getExtension(): string
30    {
31        return $this->extension;
32    }
33}

Branches

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

TempFile->__construct
10    public function __construct(private string $path, private string $originalFilename, private string $mime, private string $extension)
11    {
12    }
TempFile->getExtension
31        return $this->extension;
32    }
TempFile->getMime
26        return $this->mime;
27    }
TempFile->getOriginalFilename
21        return $this->originalFilename;
22    }
TempFile->getPath
16        return $this->path;
17    }