Skip to content
Snippets Groups Projects
Commit 73a63dea authored by Martynas Sudintas's avatar Martynas Sudintas
Browse files

added NamedBuilderBag::toArray method

parent e35d8bfe
No related branches found
No related tags found
No related merge requests found
......@@ -111,4 +111,17 @@ class NamedBuilderBag
}
);
}
/**
* {@inheritdoc}
*/
public function toArray()
{
$out = [];
foreach ($this->all() as $builder) {
$out = array_merge($out, $builder->toArray());
}
return $out;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment