| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ValidateLinkDAO { |
||
| 10 | private $mysqli; |
||
| 11 | |||
| 12 | public function __construct($mysqli) { |
||
| 13 | $this->mysqli = $mysqli; |
||
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Add a new link to validate |
||
| 18 | * |
||
| 19 | * @param string $name Name of the link |
||
| 20 | * @param string $url URL of the link |
||
| 21 | * @param string $description Description of the link |
||
| 22 | * @return integer ID of the inserted link to validate |
||
| 23 | */ |
||
| 24 | public function addValidateLink($name, $url, $description) { |
||
| 44 | } |
||
| 45 | } |
||
| 46 |