public function hash($raw) { $options = ['cost' => $this->cost]; return password_hash($raw, $this->algorithm, $options); }