| 1 | <?php  | 
            ||
| 10 | class TdbmDbProvider implements DBProvider  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @var TDBMService  | 
            ||
| 14 | */  | 
            ||
| 15 | private $tdbmService;  | 
            ||
| 16 | |||
| 17 | public function __construct(TDBMService $tdbmService)  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * This method should:  | 
            ||
| 24 | * - return null if NO value corresponding to primary keys is passed  | 
            ||
| 25 | * - throw a DBException if missing some primary keys, or object not found  | 
            ||
| 26 | * - return the found bean otherwise  | 
            ||
| 27 | *  | 
            ||
| 28 | * @param string $table  | 
            ||
| 29 | * @param array $params  | 
            ||
| 30 | * @return mixed|null  | 
            ||
| 31 | *  | 
            ||
| 32 | * @throws DBException  | 
            ||
| 33 | */  | 
            ||
| 34 | public function getObject(string $table, array $params)  | 
            ||
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * This method should return the bean class name corresponding to given table  | 
            ||
| 50 | *  | 
            ||
| 51 | * @param string $table  | 
            ||
| 52 | * @return string  | 
            ||
| 53 | *  | 
            ||
| 54 | * @throws DBException  | 
            ||
| 55 | */  | 
            ||
| 56 | public function getClassName(string $table)  | 
            ||
| 60 | }  | 
            ||
| 61 |