You are here

public function StreamEncoder::__construct in Replication 8

Same name and namespace in other branches
  1. 8.2 src/Encoder/StreamEncoder.php \Drupal\replication\Encoder\StreamEncoder::__construct()

File

src/Encoder/StreamEncoder.php, line 21

Class

StreamEncoder

Namespace

Drupal\replication\Encoder

Code

public function __construct(Random $random = NULL) {
  $this->random = $random ?: new Random();
}