| 1 | <?php |
||
| 7 | abstract class AbstractDomainRepository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \DoliDB |
||
| 11 | */ |
||
| 12 | private $db; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $tableName; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param \DoliDB $db |
||
| 21 | * @param string $tableName |
||
| 22 | */ |
||
| 23 | public function __construct(\DoliDB $db, $tableName) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $elements |
||
| 31 | * |
||
| 32 | * @return float|int |
||
| 33 | * |
||
| 34 | * @throws \Exception |
||
| 35 | */ |
||
| 36 | protected function write(array $elements){ |
||
| 64 | |||
| 65 | |||
| 66 | } |