for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\FluidSchema;
use function addslashes;
use function var_export;
class TdbmFluidJunctionTableGraphqlOptions
{
/**
* @var TdbmFluidJunctionTableOptions
*/
private $tdbmFluidJunctionTableOptions;
* @var TdbmFluidTable
private $tdbmFluidTable;
public function __construct(TdbmFluidJunctionTableOptions $tdbmFluidJunctionTableOptions, TdbmFluidTable $tdbmFluidTable)
$this->tdbmFluidJunctionTableOptions = $tdbmFluidJunctionTableOptions;
$this->tdbmFluidTable = $tdbmFluidTable;
}
public function logged(bool $mustBeLogged = true): self
if ($mustBeLogged) {
$this->addAnnotation('TheCodingMachine\\GraphQLite\\Annotations\\Logged');
} else {
$this->removeAnnotation('TheCodingMachine\\GraphQLite\\Annotations\\Logged');
return $this;
public function right(string $rightName): self
$this->addAnnotation('TheCodingMachine\\GraphQLite\\Annotations\\Right', '(name="'.addslashes($rightName).'")');
public function failWith($value): self
$this->addAnnotation('TheCodingMachine\\GraphQLite\\Annotations\\FailWith', '('.var_export($value, true).')');
public function addAnnotation(string $annotation, string $content = '', bool $replaceExisting = true): self
$this->tdbmFluidTable->addAnnotation($annotation, $content, $replaceExisting);
public function removeAnnotation(string $annotation): self
$this->tdbmFluidTable->removeAnnotation($annotation);
public function endGraphql(): TdbmFluidJunctionTableOptions
return $this->tdbmFluidJunctionTableOptions;