Skip to content

Commit 459a021

Browse files
committed
Added getConnection method
1 parent 4509604 commit 459a021

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Statflo/DB/Repository/AbstractRepository.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99

1010
abstract class AbstractRepository
1111
{
12+
/**
13+
* @var Connection
14+
*/
1215
private $connection;
1316

17+
/**
18+
* @param Connection $connection
19+
*/
1420
public function __construct(Connection $connection)
1521
{
1622
$this->connection = $connection;
@@ -20,6 +26,14 @@ abstract public function getEntityName();
2026

2127
abstract public function getTableName();
2228

29+
/**
30+
* @return Connection $connection
31+
*/
32+
public function getConnection()
33+
{
34+
return $this->connection;
35+
}
36+
2337
/**
2438
* @param Criteria[]
2539
* @param string

0 commit comments

Comments
 (0)