protected $keyspace = 'local';
/** @var LoggerInterface */
protected $logger;
- /** @var callback|null */
+ /** @var callable|null */
protected $asyncHandler;
/** @var int Seconds */
protected $syncTimeout;
* @param array $params
*/
public function __construct( array $params = [] ) {
- if ( isset( $params['logger'] ) ) {
- $this->setLogger( $params['logger'] );
- } else {
- $this->setLogger( new NullLogger() );
- }
+ $this->setLogger( $params['logger'] ?? new NullLogger() );
if ( isset( $params['keyspace'] ) ) {
$this->keyspace = $params['keyspace'];