Passed
Push — master ( 99d4dc...7294aa )
by Jakub
01:47
created

Category   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 27
ccs 10
cts 10
cp 1
c 0
b 0
f 0
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getDomain() 0 2 1
A getIdentifier() 0 2 1
A setDomain() 0 2 1
A setIdentifier() 0 2 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Nexendrie\Rss;
5
6
/**
7
 * Category
8
 *
9
 * @author Jakub Konečný
10
 * @property string $identifier
11
 * @property string $domain
12
 */
13 1
final class Category {
14 1
  use \Nette\SmartObject;
15
16
  /** @var string */
17
  protected $identifier;
18
  /** @var string */
19
  protected $domain;
20
21
  public function __construct(string $identifier, string $domain = "") {
22 1
    $this->identifier = $identifier;
23 1
    $this->domain = $domain;
24 1
  }
25
26
  public function getIdentifier(): string {
27 1
    return $this->identifier;
28
  }
29
30
  public function setIdentifier(string $identifier): void {
31 1
    $this->identifier = $identifier;
32 1
  }
33
34
  public function getDomain(): string {
35 1
    return $this->domain;
36
  }
37
38
  public function setDomain(string $domain): void {
39 1
    $this->domain = $domain;
40 1
  }
41
}
42
?>