entry = $entry; $this->type = $type; $this->thumbnail = $thumbnail; $this->user_id = (string) $user_id; return $this; } /** * * @return string */ public function get_id() { return (string) $this->entry['id']; } /** * * @return string */ public function get_thumbnail($width = 120, $height = 90) { return $this->thumbnail; } /** * * @return string */ public function get_url() { return sprintf( 'https://secure.flickr.com/photos/%s/sets/%s' , $this->user_id , $this->entry['id'] ); } /** * * @return string */ public function get_title() { return (string) $this->entry->title; } /** * * @return string */ public function get_description() { return (string) $this->entry->description; } /** * * @return DateTime */ public function get_updated_on() { return DateTime::createFromFormat('U', (string) $this->entry['date_update']); } /** * * @return DateTime */ public function get_created_on() { return DateTime::createFromFormat('U', (string) $this->entry['date_create']); } /** * * @return string */ public function get_type() { return $this->type; } public function get_duration() { return ''; } public function get_category() { return ''; } public function is_private() { return null; } }