<?php | |
class Bug { | |
private $id; | |
private $shortDesc; | |
public function __construct( $id, $shortDesc ) { | |
$this->id = $id; | |
$this->shortDesc = $shortDesc; | |
} | |
public function getId() { | |
return $this->id; | |
} | |
public function getShortDesc() { | |
return $this->shortDesc; | |
} | |
public function render() { | |
$result = "<a href='http://bugs.eclipse.org/bugs/show_bug.cgi?id=" . $this->getId() . "'>Bug " . $this->getId() . "</a>: " . $this->getShortDesc(); | |
return $result; | |
} | |
} | |
?> |