Skip to content

Commit

Permalink
Make connection, pool and log available to subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijastuden committed Nov 22, 2016
1 parent 18951a6 commit 70ee16f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Producer.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,28 @@ public function &scrap(EntityInterface &$instance, $force_delete = false)
return $instance->delete();
}
}

/**
* @return ConnectionInterface
*/
protected function getConnection()
{
return $this->connection;
}

/**
* @return PoolInterface
*/
protected function getPool()
{
return $this->pool;
}

/**
* @return LoggerInterface|null
*/
protected function getLog()
{
return $this->log;
}
}

0 comments on commit 70ee16f

Please sign in to comment.