Skip to content

Commit 70ee16f

Browse files
committed
Make connection, pool and log available to subclasses
1 parent 18951a6 commit 70ee16f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/Producer.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,28 @@ public function &scrap(EntityInterface &$instance, $force_delete = false)
124124
return $instance->delete();
125125
}
126126
}
127+
128+
/**
129+
* @return ConnectionInterface
130+
*/
131+
protected function getConnection()
132+
{
133+
return $this->connection;
134+
}
135+
136+
/**
137+
* @return PoolInterface
138+
*/
139+
protected function getPool()
140+
{
141+
return $this->pool;
142+
}
143+
144+
/**
145+
* @return LoggerInterface|null
146+
*/
147+
protected function getLog()
148+
{
149+
return $this->log;
150+
}
127151
}

0 commit comments

Comments
 (0)