callback = $callback; } /** * @since 3.0 * * @return mixed */ public function getConnection() { if ( $this->connection === null ) { $this->connection = call_user_func( $this->callback ); } return $this->connection; } /** * @since 3.0 */ public function releaseConnection() { $this->connection = null; } }