Query Building #3

Closed
cerys wants to merge 3 commits from query-building into master
  1. 2
      composer.json
  2. 24
      src/Enumerators/DeegraphNumericalComparator.php
  3. 4
      src/QueryBuilder/QueryBuilders/SelectQuery.php

2
composer.json

@ -6,7 +6,7 @@
"authors": [ "authors": [
{ {
"name": "Cerys Lewis", "name": "Cerys Lewis",
"email": "cerys@darksparrow.uk", "email": "cerys.lewis@darksparrow.uk",
"homepage": "https://ceryslewis.dev", "homepage": "https://ceryslewis.dev",
"role": "Lead Developer" "role": "Lead Developer"
} }

24
src/Enumerators/DeegraphNumericalComparitor.php → src/Enumerators/DeegraphNumericalComparator.php

@ -1,12 +1,12 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Enumerators; namespace Darksparrow\DeegraphPHP\Enumerators;
enum DeegraphNumericalComparitor: string enum DeegraphNumericalComparator: string
{ {
case LESS_THAN = "<"; case LESS_THAN = "<";
case MORE_THAN = ">"; case MORE_THAN = ">";
case LESS_THAN_OR_EQUAL_TO = "<="; case LESS_THAN_OR_EQUAL_TO = "<=";
case MORE_THAN_OR_EQUAL_TO = ">="; case MORE_THAN_OR_EQUAL_TO = ">=";
} }

4
src/QueryBuilder/QueryBuilders/SelectQuery.php

@ -53,9 +53,9 @@ final class SelectQuery
$this->Where = "" . $target . " " . $operator->value . " " . $value; $this->Where = "" . $target . " " . $operator->value . " " . $value;
return $this; return $this;
} }
public function InstanceOf(string $target): SelectQuery public function InstanceOf(string $schema): SelectQuery
{ {
$this->InstanceOf = "" . $target; $this->InstanceOf = "" . $schema;
return $this; return $this;
} }
} }
Loading…
Cancel
Save