| Total Complexity | 14 |
| Total Lines | 149 |
| Duplicated Lines | 0 % |
| Coverage | 73.52% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class Coin |
||
| 16 | { |
||
| 17 | use IdentityTrait, NameTrait; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $name; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $symbol; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $description; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var int |
||
| 36 | */ |
||
| 37 | private $rank; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var boolean |
||
| 41 | */ |
||
| 42 | private $new; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var boolean |
||
| 46 | */ |
||
| 47 | private $active; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var array |
||
| 51 | */ |
||
| 52 | private $links; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 2 | public function getName(): string |
|
| 58 | { |
||
| 59 | 2 | return $this->name; |
|
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param string $name |
||
| 64 | */ |
||
| 65 | 2 | public function setName(string $name): void |
|
| 66 | { |
||
| 67 | 2 | $this->name = $name; |
|
| 68 | 2 | } |
|
| 69 | |||
| 70 | /** |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | 2 | public function getSymbol(): string |
|
| 74 | { |
||
| 75 | 2 | return $this->symbol; |
|
| 76 | } |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @param string $symbol |
||
| 80 | */ |
||
| 81 | 2 | public function setSymbol(string $symbol): void |
|
| 82 | { |
||
| 83 | 2 | $this->symbol = $symbol; |
|
| 84 | 2 | } |
|
| 85 | |||
| 86 | /** |
||
| 87 | * @return string |
||
| 88 | */ |
||
| 89 | public function getDescription(): string |
||
| 90 | { |
||
| 91 | return $this->description; |
||
| 92 | } |
||
| 93 | |||
| 94 | /** |
||
| 95 | * @param string $description |
||
| 96 | */ |
||
| 97 | public function setDescription(string $description): void |
||
| 98 | { |
||
| 99 | $this->description = $description; |
||
| 100 | } |
||
| 101 | |||
| 102 | /** |
||
| 103 | * @return int |
||
| 104 | */ |
||
| 105 | 2 | public function getRank(): int |
|
| 106 | { |
||
| 107 | 2 | return $this->rank; |
|
| 108 | } |
||
| 109 | |||
| 110 | /** |
||
| 111 | * @param int $rank |
||
| 112 | */ |
||
| 113 | 2 | public function setRank(int $rank): void |
|
| 114 | { |
||
| 115 | 2 | $this->rank = $rank; |
|
| 116 | 2 | } |
|
| 117 | |||
| 118 | /** |
||
| 119 | * @return bool |
||
| 120 | */ |
||
| 121 | 2 | public function isNew(): bool |
|
| 122 | { |
||
| 123 | 2 | return $this->new; |
|
| 124 | } |
||
| 125 | |||
| 126 | /** |
||
| 127 | * @param bool $new |
||
| 128 | */ |
||
| 129 | 2 | public function setNew(bool $new): void |
|
| 130 | { |
||
| 131 | 2 | $this->new = $new; |
|
| 132 | 2 | } |
|
| 133 | |||
| 134 | /** |
||
| 135 | * @return bool |
||
| 136 | */ |
||
| 137 | 2 | public function isActive(): bool |
|
| 140 | } |
||
| 141 | |||
| 142 | /** |
||
| 143 | * @param bool $active |
||
| 144 | */ |
||
| 145 | 2 | public function setActive(bool $active): void |
|
| 148 | 2 | } |
|
| 149 | |||
| 150 | /** |
||
| 151 | * @return array |
||
| 152 | */ |
||
| 153 | public function getLinks(): array |
||
| 154 | { |
||
| 156 | } |
||
| 157 | |||
| 158 | /** |
||
| 159 | * @param array $links |
||
| 160 | */ |
||
| 161 | public function setLinks(array $links): void |
||
| 166 |