Add __toString() methods for Description and Tag

And let the Serializer make use of the (string) $tag
This commit is contained in:
Barry vd. Heuvel
2013-05-27 18:16:15 +02:00
parent ac6e37af97
commit ab0bcb8d31
3 changed files with 5 additions and 9 deletions
@@ -209,14 +209,12 @@ class Description implements \Reflector
}
/**
* Returns the exported information (we should use the export static method
* BUT this throws an exception at this point).
* Returns the long description as a string.
*
* @return string
* @codeCoverageIgnore Not yet implemented
*/
public function __toString()
{
return 'Not yet implemented';
return $this->getContents();
}
}