Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Dec 18, 2024
1 parent 1fa13dd commit 539fa62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Contracts/PayloadRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ public function remove(string $key): self;

public function add(string $key, $value): self;

public function get(string $key, $default = null): mixed;
/**
* @return mixed
*/
public function get(string $key, $default = null);

public function merge(array ...$arrays): self;

Expand Down
5 changes: 4 additions & 1 deletion src/Repositories/JsonPayloadRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ public function add(string $key, $value): self
return $this;
}

public function get(string $key, $default = null): mixed
/**
* @return mixed
*/
public function get(string $key, $default = null)
{
return $this->store[$key] ?? $default;
}
Expand Down

0 comments on commit 539fa62

Please sign in to comment.