| Total Complexity | 5 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | class Headline extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * identifier |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $identifier = null; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * constuctor |
||
| 18 | * |
||
| 19 | * @param string $uniqueId |
||
| 20 | * @param string $title |
||
| 21 | * @param string $text |
||
| 22 | * @param string $url |
||
| 23 | * @param bool $active |
||
| 24 | */ |
||
| 25 | public function __construct( |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * setIdentifier from rest api response |
||
| 50 | */ |
||
| 51 | public function setId(string $identifier): void |
||
| 52 | { |
||
| 53 | $this->identifier = $identifier; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * getIdentifier set before |
||
| 58 | */ |
||
| 59 | public function getId(): string |
||
| 62 | } |
||
| 63 | } |
||
| 65 |