PictureStruct example

return $producer;
    }

    /** * @return PictureStruct[] */
    private function hydratePictures(array $data): array
    {
        $pictures = [];
        foreach ($data as $row) {
            $picture = new PictureStruct();
            $picture->setCover((bool) $row['preview']);
            $picture->setRemoteLink($row['remoteLink']);

            $pictures[] = $picture;
        }

        return $pictures;
    }

    /** * @return PriceStruct[] */
Home | Imprint | This part of the site doesn't use cookies.