TimeEntry   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRepositoryClass() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Blackmine\Model\Project;
6
7
use Blackmine\Model\Enumeration\TimeEntryActivity;
8
use Carbon\CarbonImmutable;
9
use Blackmine\Model\FetchableInterface;
10
use Blackmine\Model\Identity;
11
use Blackmine\Model\Issue\Issue;
12
use Blackmine\Model\User\User;
13
use Blackmine\Repository\Projects\TimeEntries;
14
15
/**
16
 * @method setIssue(Issue $issue): void
17
 * @method setProject(Project $project): void
18
 * @method setSpentOn(CarbonImmutable $spent_on): void
19
 * @method setHours(float $hours): void
20
 * @method setActivity(TimeEntryActivity $activity): void
21
 * @method setComments(string $comments): void
22
 * @method setUser(User $user): void
23
 *
24
 * @method Issue getIssue()
25
 * @method Project getProject()
26
 * @method CarbonImmutable getSpentOn()
27
 * @method TimeEntryActivity getActivity()
28
 * @method string getComments()
29
 * @method User getUser()
30
 */
31
class TimeEntry extends Identity implements FetchableInterface
32
{
33
    public const ENTITY_NAME = "time_entry";
34
35
    protected ?Issue $issue;
36
    protected ?Project $project;
37
    protected CarbonImmutable $spent_on;
38
    protected float $hours;
39
    protected TimeEntryActivity $activity;
40
    protected string $comments;
41
    protected User $user;
42
43
    public static function getRepositoryClass(): ?string
44
    {
45
        return TimeEntries::class;
46
    }
47
}
48