public function addImageConcepts(array $data, array $concepts)
    {
        $data['concepts'] = [];

        foreach ($concepts as $concept) {
            $data['concepts'][] = [
                'id' => $concept->getId(),
                'value' => $concept->getValue(),
            ];
        }

        return $data;
    }
public function addImageConcepts(array $data, array $concepts)
    {
        $data['concepts'] = [];

        foreach ($concepts as $concept) {
            $data['concepts'][] = [
                'id' => $concept->getId(),
                'value' => $concept->getValue(),
            ];
        }

        return $data;
    }
public function addImageConcepts ( array $ data , array $ concepts ) { $ data [ 'concepts' ] = [ ] ; foreach ( $ concepts as $ concept ) { $ data [ 'concepts' ] [ ] = [ 'id' => $ concept -> getId ( ) , 'value' => $ concept -> getValue ( ) , ] ; } return $ data ; }
Adds Image Concepts to Image Data

@param array $data
@param array $concepts

@return array
Adds Image Concepts to Image Data