Skip to content

Commit

Permalink
Merge pull request #5 from phonetworks/hydrator
Browse files Browse the repository at this point in the history
Hydrator implemented
  • Loading branch information
esokullu authored May 12, 2017
2 parents 2527b78 + 12e99cc commit 7b4f446
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.0
4.0.0
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require": {
"php":">=5.3.0",
"zendframework/zend-file": "*",
"phonetworks/pho-lib-graph": "^1.1"
"phonetworks/pho-lib-graph": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
Expand Down
17 changes: 15 additions & 2 deletions src/Pho/Framework/ParticleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,23 @@ public function existentials(): array
{
return [
"node" => $this,
"creator" => $this->creator,
"context" => $this->context
"creator" => $this->creator(),
"context" => $this->context()
];
}

public function creator(): Actor
{
if(isset($this->creator))
return $this->creator;
else
return $this->hydratedCreator();
}

protected function hydratedCreator(): Actor
{

}


}

0 comments on commit 7b4f446

Please sign in to comment.