Skip to content

Commit cca3007

Browse files
committed
#21 - add setter and getter
1 parent aa00f24 commit cca3007

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/TgDatabase/DataModel.php

+14
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ public function __construct($database, $daoFactory = NULL) {
2727
$this->init($database);
2828
}
2929

30+
/**
31+
* Returns the DAO factory object.
32+
*/
33+
public function getDaoFactory() {
34+
return $this->daoFactory;
35+
}
36+
37+
/**
38+
* Sets the DAO factory object
39+
*/
40+
public function setDaoFactory($daoFactory) {
41+
$this->daoFactory = $daoFactory;
42+
}
43+
3044
/**
3145
* Initializes all DAOs.
3246
* <p>This method does nothing. Descendants shall override here and create and register their DAOs.</p>

0 commit comments

Comments
 (0)