sql/src/TransientResource.php
Niklas Keller e257237b61 Improve naming
Relates to #1.
2018-09-13 20:51:10 +02:00

21 lines
361 B
PHP

<?php
namespace Amp\Sql;
interface TransientResource
{
/**
* Indicates if the resource is still valid.
*
* @return bool
*/
public function isAlive(): bool;
/**
* Get the timestamp of the last usage of this resource.
*
* @return int Unix timestamp in seconds.
*/
public function getLastUsedAt(): int;
}