This commit is contained in:
2023-10-02 23:10:49 +03:00
commit c6cb488379
255 changed files with 18731 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php namespace Lucent\Edge;
use Lucent\LucentException;
class EdgeService
{
/**
* @throws LucentException
*/
public static function create(
string $source,
string $target,
string $sourceSchema,
string $targetSchema,
string $field,
string $rank,
): Edge
{
$edge = new Edge(
source: $source,
target: $target,
sourceSchema: $sourceSchema,
targetSchema: $targetSchema,
field: $field,
rank: $rank,
);
EdgeRepo::insert($edge);
return $edge;
}
}