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

Category::getDomain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
nc 1
nop 0
dl 0
loc 2
ccs 1
cts 1
cp 1
c 0
b 0
f 0
cc 1
crap 1
rs 10
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
?>