Explorar o código

[Templating] added some missing phpdoc

Fabien Potencier %!s(int64=15) %!d(string=hai) anos
pai
achega
8f112ae261

+ 5 - 0
src/Symfony/Components/Templating/Storage/FileStorage.php

@@ -20,6 +20,11 @@ namespace Symfony\Components\Templating\Storage;
  */
 class FileStorage extends Storage
 {
+    /**
+     * Returns the content of the template.
+     *
+     * @return string The template content
+     */
     public function getContent()
     {
         return file_get_contents($this->template);

+ 6 - 0
src/Symfony/Components/Templating/Storage/Storage.php

@@ -27,6 +27,7 @@ abstract class Storage
      * Constructor.
      *
      * @param string $template The template name
+     * @param string $renderer The renderer name
      */
     public function __construct($template, $renderer = null)
     {
@@ -44,6 +45,11 @@ abstract class Storage
         return (string) $this->template;
     }
 
+    /**
+     * Returns the content of the template.
+     *
+     * @return string The template content
+     */
     abstract public function getContent();
 
     /**

+ 5 - 0
src/Symfony/Components/Templating/Storage/StringStorage.php

@@ -20,6 +20,11 @@ namespace Symfony\Components\Templating\Storage;
  */
 class StringStorage extends Storage
 {
+    /**
+     * Returns the content of the template.
+     *
+     * @return string The template content
+     */
     public function getContent()
     {
         return $this->template;