| 1 | <?php |
||
| 5 | abstract class Model |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The database instance |
||
| 9 | * |
||
| 10 | * @var PDO |
||
| 11 | */ |
||
| 12 | protected $database; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The table associated with the model |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $table; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new abstract model. |
||
| 23 | * |
||
| 24 | * @return void |
||
|
1 ignored issue
–
show
|
|||
| 25 | */ |
||
| 26 | public function __construct() |
||
| 30 | } |
||
| 31 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.