Fix missing Example::__toString method

This method is required by the Tag interface.
This commit is contained in:
Sullivan SENECHAL
2016-06-09 10:39:27 +02:00
parent 45ada3e3fd
commit c8bfd60f52
+10
View File
@@ -134,6 +134,16 @@ final class Example extends BaseTag
return $this; return $this;
} }
/**
* Returns a string representation for this tag.
*
* @return string
*/
public function __toString()
{
return $this->filePath . ($this->description ? ' ' . $this->description->render() : '');
}
/** /**
* Returns true if the provided URI is relative or contains a complete scheme (and thus is absolute). * Returns true if the provided URI is relative or contains a complete scheme (and thus is absolute).
* *