Fix the transaction factory and associated tests.

This commit is contained in:
James Cole
2018-07-07 22:28:08 +02:00
parent e78a59a8a8
commit 8e08ff2d39
3 changed files with 12 additions and 10 deletions

View File

@@ -62,6 +62,11 @@ class RuleGroupTransformer extends TransformerAbstract
$this->parameters = $parameters;
}
/**
* @param RuleGroup $ruleGroup
*
* @return FractalCollection
*/
public function includeRules(RuleGroup $ruleGroup): FractalCollection
{
return $this->collection($ruleGroup->rules, new RuleTransformer($this->parameters), 'rules');