/**
* Transforms a dance object array or collection to an int array
*
- * @param Dance $dances The dance instances array
+ * @param Collection|array $dances The dance instances array
* @return array The dance ids
*/
- public function transform($dances) {
+ public function transform(mixed $dances): mixed {
//Without dances
if (null === $dances) {
return [];
* @throws TransformationFailedException when object (dance) is not found
* @return array The dance instances array
*/
- public function reverseTransform($ids) {
+ public function reverseTransform(mixed $ids): mixed {
//Without ids
if ('' === $ids || null === $ids) {
$ids = [];
/**
* Transforms a subscription object array or collection to an int array
*
- * @param Subscription $subscriptions The subscription instances array
+ * @param Collection|array $subscriptions The subscription instances array
* @return array The subscription ids
*/
- public function transform($subscriptions) {
+ public function transform(mixed $subscriptions): mixed {
//Without subscriptions
if (null === $subscriptions) {
return [];
*
* @param array $ids
* @throws TransformationFailedException when object (subscription) is not found
- * @return array The subscription instances array
+ * @return Collection The subscription instances array
*/
- public function reverseTransform($ids) {
+ public function reverseTransform(mixed $ids): mixed {
//Without ids
if ('' === $ids || null === $ids) {
$ids = [];