src/Query/Cypher.php
public function withParameter(string $key, $parameter): self
    {
        if (Str::of($key)->empty()) {
            throw new DomainException;
        }

        $query = new self($this->cypher);
        $query->parameters = $this->parameters->put(
            $key,
            new Parameter($key, $parameter)
        );

        return $query;
    }
public function withParameter(string $key, $parameter): self
    {
        if (Str::of($key)->empty()) {
            throw new DomainException;
        }

        $query = new self($this->cypher);
        $query->parameters = $this->parameters->put(
            $key,
            new Parameter($key, $parameter)
        );

        return $query;
    }
public function withParameter ( string $ key , $ parameter ) : self { if ( Str :: of ( $ key ) -> empty ( ) ) { throw new DomainException ; } $ query = new self ( $ this -> cypher ) ; $ query -> parameters = $ this -> parameters -> put ( $ key , new Parameter ( $ key , $ parameter ) ) ; return $ query ; }
Attach the given parameter to this query

@param string $key
@param mixed $parameter

@throws NonParametrableClause

@return self
Attach the given parameter to this query