/** * {@inheritdoc} */ public function getResource() { return $this->connection->getResource(); }
/** * Asserts that the connection is not using a persistent resource stream. * * This assertion will trigger a connect() operation if the connection has * not been open yet. * * @param NodeConnectionInterface $connection Connection instance. */ protected function assertNonPersistentConnection(NodeConnectionInterface $connection) { $this->assertSame('stream', get_resource_type($connection->getResource())); }