public function extract($object)
    {
        $return = array();
        foreach ($object as $profile) {
            $return[strtolower($profile->getName())] = $profile->getData();
        }
        return $return;
    }
public function extract($object)
    {
        $return = array();
        foreach ($object as $profile) {
            $return[strtolower($profile->getName())] = $profile->getData();
        }
        return $return;
    }
public function extract ( $ object ) { $ return = array ( ) ; foreach ( $ object as $ profile ) { $ return [ strtolower ( $ profile -> getName ( ) ) ] = $ profile -> getData ( ) ; } return $ return ; }
Extracts profile data from the collection.

@param Collection $object
@return array profile data in the format [profile name] => [profile data].
@see \Zend\Hydrator\HydratorInterface::extract()
Extracts profile data from the collection .