/**
* This kind of proxy class take care of getting the content from an url
- * and update the entry with what it found
+ * and update the entry with what it found.
*/
class ContentProxy
{
/**
* Fetch content using graby and hydrate given entry with results information.
- * In case we couldn't find content, we'll try to use Open Graph data
+ * In case we couldn't find content, we'll try to use Open Graph data.
*
- * @param Entry $entry Entry to update
- * @param string $url Url to grab content for
+ * @param Entry $entry Entry to update
+ * @param string $url Url to grab content for
*
* @return Entry
*/
'open_graph' => array(
'og_title' => 'my OG title',
'og_description' => 'OG desc',
- 'og_image' => 'http://3.3.3.3/cover.jpg'
- )
+ 'og_image' => 'http://3.3.3.3/cover.jpg',
+ ),
));
$proxy = new ContentProxy($graby);