Relation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 21
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\Issue;
6
7
use Blackmine\Model\FetchableInterface;
8
use Blackmine\Model\Identity;
9
use Blackmine\Repository\Issues\Relations;
10
11
/**
12
 * @method void setIssueId(int $issue_id)
13
 * @method void setIssueToId(int $issue_to_id)
14
 * @method void setRelationType(string $relation_type)
15
 *
16
 * @method int getIssueId()
17
 * @method int getIssueToId()
18
 * @method string getRelationType()
19
 */
20
class Relation extends Identity implements FetchableInterface
21
{
22
    public const ENTITY_NAME = "relation";
23
24
    public const RELATION_TYPE_RELATES = "relates";
25
    public const RELATION_TYPE_DUPLICATES = "duplicates";
26
    public const RELATION_TYPE_DUPLICATED = "duplicated";
27
    public const RELATION_TYPE_BLOCKS = "blocks";
28
    public const RELATION_TYPE_BLOCKED = "blocked";
29
    public const RELATION_TYPE_PRECEDES = "precedes";
30
    public const RELATION_TYPE_FOLLOWS = "follows";
31
    public const RELATION_TYPE_COPIED_TO = "copied_to";
32
    public const RELATION_TYPE_COPIED_FROM = "copied_from";
33
34
    protected int $issue_id;
35
    protected int $issue_to_id;
36
    protected string $relation_type = self::RELATION_TYPE_RELATES;
37
38
    public static function getRepositoryClass(): ?string
39
    {
40
        return Relations::class;
41
    }
42
}
43