| Total Complexity | 5 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Badge implements BadgeInterface |
||
| 14 | { |
||
| 15 | |||
| 16 | protected $namespace; |
||
| 17 | protected $name; |
||
| 18 | protected $data; |
||
| 19 | |||
| 20 | 1 | public function __construct($namespace, $name, $data = null) |
|
| 21 | { |
||
| 22 | 1 | $this->namespace = $namespace; |
|
| 23 | 1 | $this->name = $name; |
|
| 24 | 1 | $this->data = $data; |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @JMS\Groups({"public_profile"}) |
||
| 29 | * @JMS\VirtualProperty |
||
| 30 | * @JMS\SerializedName("data") |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | 1 | public function getData() |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @JMS\Groups({"public_profile"}) |
||
| 40 | * @JMS\VirtualProperty |
||
| 41 | * @JMS\SerializedName("name") |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 1 | public function getName() |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @JMS\Groups({"public_profile"}) |
||
| 51 | * @JMS\VirtualProperty |
||
| 52 | * @JMS\SerializedName("namespace") |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | 1 | public function getNamespace() |
|
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @inheritDoc |
||
| 62 | */ |
||
| 63 | public function __toString(): string |
||
| 70 |