| 1 | <?php |
||
| 12 | class SqlDelete extends SqlActions |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Constructor |
||
| 16 | * |
||
| 17 | * @param \BfwSql\SqlConnect $sqlConnect Instance of SGBD connexion |
||
| 18 | * @param string $tableName The table name used for query |
||
| 19 | */ |
||
| 20 | public function __construct(SqlConnect $sqlConnect, $tableName) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | public function assembleRequest() |
||
| 39 | } |
||
| 40 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: