Skip to content

Commit

Permalink
Allow overriding of methods
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Jul 8, 2024
1 parent e9fab13 commit afb1652
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Data/AbstractAugmented.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected function getFromData($handle)
return $value;
}

private function wrapDeferredValue($handle)
protected function wrapDeferredValue($handle)
{
return new Value(
fn () => $this->getFromData($handle),
Expand All @@ -125,7 +125,7 @@ private function wrapDeferredValue($handle)
);
}

private function wrapAugmentedMethodInvokable(string $method, string $handle)
protected function wrapAugmentedMethodInvokable(string $method, string $handle)
{
return new Value(
fn () => $this->$method(),
Expand All @@ -135,7 +135,7 @@ private function wrapAugmentedMethodInvokable(string $method, string $handle)
);
}

private function wrapDataMethodInvokable(string $method, string $handle)
protected function wrapDataMethodInvokable(string $method, string $handle)
{
return new Value(
fn () => $this->data->$method(),
Expand Down

0 comments on commit afb1652

Please sign in to comment.