Skip to content

Commit

Permalink
Add getters for aggregates job (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ujackson authored Oct 2, 2020
1 parent 256ac43 commit 105f15b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Reactant/Jobs/DecrementReactionAggregatesJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,20 @@ public function handle(): void
(new ReactionTotalService($this->reactant))
->removeReaction($this->reaction);
}

/**
* @return ReactantContract
*/
public function getReactant(): ReactantContract
{
return $this->reactant;
}

/**
* @return ReactionContract
*/
public function getReaction(): ReactionContract
{
return $this->reaction;
}
}
16 changes: 16 additions & 0 deletions src/Reactant/Jobs/IncrementReactionAggregatesJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,20 @@ public function handle(): void
(new ReactionTotalService($this->reactant))
->addReaction($this->reaction);
}

/**
* @return ReactantContract
*/
public function getReactant(): ReactantContract
{
return $this->reactant;
}

/**
* @return ReactionContract
*/
public function getReaction(): ReactionContract
{
return $this->reaction;
}
}

0 comments on commit 105f15b

Please sign in to comment.