| Total Complexity | 7 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Article { |
||
| 10 | private $id; |
||
| 11 | private $title; |
||
| 12 | private $intro; |
||
| 13 | private $date; |
||
| 14 | private $user; |
||
| 15 | |||
| 16 | public function __construct($id, $title, $intro, $date, $user) { |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getId() { |
||
| 25 | return $this->id; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getTitle() { |
||
| 29 | return $this->title; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getIntro() { |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getDate() { |
||
| 37 | return $this->date; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getUser() { |
||
| 41 | return $this->user; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string The HTML text for the intro |
||
| 46 | */ |
||
| 47 | public function getIntroHtml() { |
||
| 49 | } |
||
| 50 | } |
||
| 51 |