File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ $channel
22
22
->title('Channel Title')
23
23
->description('Channel Description')
24
24
->url('http://blog.example.com')
25
+ ->feedUrl('http://blog.example.com/rss')
25
26
->language('en-US')
26
27
->copyright('Copyright 2012, Foo Bar')
27
28
->pubDate(strtotime('Tue, 21 Aug 2012 19:50:37 +0900'))
Original file line number Diff line number Diff line change 17
17
->title ('Channel Title ' )
18
18
->description ('Channel Description ' )
19
19
->url ('http://blog.example.com ' )
20
- ->feed_url ('http://blog.example.com/rss ' )
20
+ ->feedUrl ('http://blog.example.com/rss ' )
21
21
->language ('en-US ' )
22
22
->copyright ('Copyright 2012, Foo Bar ' )
23
23
->pubDate (strtotime ('Tue, 21 Aug 2012 19:50:37 +0900 ' ))
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ class Channel implements ChannelInterface
14
14
/** @var string */
15
15
protected $ url ;
16
16
17
- /** @var feed_url */
18
- protected $ feed_url ;
17
+ /** @var feedUrl */
18
+ protected $ feedUrl ;
19
19
20
20
/** @var string */
21
21
protected $ description ;
@@ -68,9 +68,9 @@ public function url($url)
68
68
* @param string $url
69
69
* @return $this;
70
70
*/
71
- public function feed_url ($ url )
71
+ public function feedUrl ($ url )
72
72
{
73
- $ this ->feed_url = $ url ;
73
+ $ this ->feedUrl = $ url ;
74
74
return $ this ;
75
75
}
76
76
@@ -194,9 +194,9 @@ public function asXML()
194
194
$ xml ->addChild ('link ' , $ this ->url );
195
195
$ xml ->addChild ('description ' , $ this ->description );
196
196
197
- if ($ this ->feed_url !== null ) {
197
+ if ($ this ->feedUrl !== null ) {
198
198
$ link = $ xml ->addChild ('atom:link ' , '' , "http://www.w3.org/2005/Atom " );
199
- $ link ->addAttribute ('href ' ,$ this ->feed_url );
199
+ $ link ->addAttribute ('href ' ,$ this ->feedUrl );
200
200
$ link ->addAttribute ('type ' ,'application/rss+xml ' );
201
201
$ link ->addAttribute ('rel ' ,'self ' );
202
202
}
You can’t perform that action at this time.
0 commit comments