Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

addWriter() changes to stay consistent.

OpenGraphProtocolVideoObject->addWriter() now returns the instance
OpenGraphProtocolVideoObject object to stay consistent with the rest 
of the add*() API.
  • Loading branch information...
commit 963ce7a8da14e252489250ebf0591f7b22fbcfb5 1 parent 716a84d
@jonursenbach jonursenbach authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 objects.php
View
4 objects.php
@@ -606,10 +606,14 @@ public function getWriters() {
* Add a writer profile URL
*
* @param string $url writer profile URL
+ *
+ * @return OpenGraphProtocolVideoObject
*/
public function addWriter( $url ) {
if ( static::is_valid_url($url) && !in_array($url, $this->writer) )
$this->writer[] = $url;
+
+ return $this;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.