fixed some phpdoc

This commit is contained in:
Fabien Potencier 2012-01-11 15:52:51 +01:00
parent b9a14f0411
commit fa1c946140
5 changed files with 13 additions and 7 deletions

View File

@ -31,8 +31,9 @@ class TimedTwigEngine extends TwigEngine
* *
* @param \Twig_Environment $environment A \Twig_Environment instance * @param \Twig_Environment $environment A \Twig_Environment instance
* @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance * @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance
* @param GlobalVariables|null $globals A GlobalVariables instance or null * @param FileLocatorInterface $locator A FileLocatorInterface instance
* @param Stopwatch $stopwatch A Stopwatch instance * @param Stopwatch $stopwatch A Stopwatch instance
* @param GlobalVariables $globals A GlobalVariables instance
*/ */
public function __construct(\Twig_Environment $environment, TemplateNameParserInterface $parser, FileLocatorInterface $locator, Stopwatch $stopwatch, GlobalVariables $globals = null) public function __construct(\Twig_Environment $environment, TemplateNameParserInterface $parser, FileLocatorInterface $locator, Stopwatch $stopwatch, GlobalVariables $globals = null)
{ {

View File

@ -35,6 +35,7 @@ class TwigEngine implements EngineInterface, StreamingEngineInterface
* *
* @param \Twig_Environment $environment A \Twig_Environment instance * @param \Twig_Environment $environment A \Twig_Environment instance
* @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance * @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance
* @param FileLocatorInterface $locator A FileLocatorInterface instance
* @param GlobalVariables|null $globals A GlobalVariables instance or null * @param GlobalVariables|null $globals A GlobalVariables instance or null
*/ */
public function __construct(\Twig_Environment $environment, TemplateNameParserInterface $parser, FileLocatorInterface $locator, GlobalVariables $globals = null) public function __construct(\Twig_Environment $environment, TemplateNameParserInterface $parser, FileLocatorInterface $locator, GlobalVariables $globals = null)

View File

@ -44,7 +44,7 @@ class TimeDataCollector extends DataCollector
/** /**
* Sets the request events. * Sets the request events.
* *
* @param array $event The request events * @param array $events The request events
*/ */
public function setEvents(array $events) public function setEvents(array $events)
{ {

View File

@ -20,7 +20,10 @@ class MongoDbProfilerStorage implements ProfilerStorageInterface
/** /**
* Constructor. * Constructor.
* *
* @param string $dsn A data source name * @param string $dsn A data source name
* @param string $username Not used
* @param string $password Not used
* @param integer $lifetime The lifetime to use for the purge
*/ */
public function __construct($dsn, $username = '', $password = '', $lifetime = 86400) public function __construct($dsn, $username = '', $password = '', $lifetime = 86400)
{ {
@ -31,9 +34,10 @@ class MongoDbProfilerStorage implements ProfilerStorageInterface
/** /**
* Finds profiler tokens for the given criteria. * Finds profiler tokens for the given criteria.
* *
* @param string $ip The IP * @param string $ip The IP
* @param string $url The URL * @param string $url The URL
* @param string $limit The maximum number of tokens to return * @param string $limit The maximum number of tokens to return
* @param string $method The request method
* *
* @return array An array of tokens * @return array An array of tokens
*/ */

View File

@ -98,7 +98,7 @@ class Translator implements TranslatorInterface
/** /**
* Sets the fallback locale(s). * Sets the fallback locale(s).
* *
* @param string|array $locale The fallback locale(s) * @param string|array $locales The fallback locale(s)
* *
* @api * @api
*/ */