for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TBolier\RethinkQL\Query;
use TBolier\RethinkQL\Types\Term\TermType;
class Options implements OptionsInterface
{
private $db;
public function setDb(string $name): OptionsInterface
$this->db = [
TermType::DB,
[$name],
];
return $this;
}
/**
* Specify data which should be serialized to JSON
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
* @return mixed data which can be serialized by <b>json_encode</b>,
* which is a value of any type other than a resource.
* @since 5.4.0
*/
public function jsonSerialize()
return [
'db' => $this->db