Skip to content

Commit

Permalink
Implement DataFactory::quadNoSubject()
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Jan 24, 2024
1 parent 692fc4f commit 147deed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/simpleRdf/DataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
use rdfInterface\DefaultGraphInterface as iDefaultGraph;
use rdfInterface\QuadInterface as iQuad;
use rdfHelpers\DefaultGraph;
use rdfHelpers\QuadNoSubject;

/**
* Description of DataFactory
Expand Down Expand Up @@ -69,4 +70,11 @@ public static function quad(
): iQuad {
return new Quad(clone $subject, clone $predicate, clone $object, $graphIri);
}

public static function quadNoSubject(
iNamedNode $predicate, iTerm $object,
iNamedNode | iBlankNode | iDefaultGraph | null $graphIri = null
): QuadNoSubject {
return new QuadNoSubject(clone $predicate, clone $object, $graphIri);
}
}

0 comments on commit 147deed

Please sign in to comment.