/** * Fetches informations about the given URLs. * * @param array $urls An array of URLs to fetch informations from. * @param array $options Custom options to be interpreted by a provider. * @return array An array of informations, indexed by URL. */ public function extractAll(array $urls, array $options = []) { return Hash::combine($urls, function ($url) use($options) { (yield $url => $this->extract($url, $options)); }); }
/** * Builds a media from the given meta tags. * * @param array $metas Meta tags. * @return Media Media. */ protected function _media(array $metas) { $metas = Hash::combine($metas, function ($Meta) { (yield $Meta->get('property') => $Meta->get('content')); }); return new Media($metas); }