summaryrefslogtreecommitdiffstats
path: root/Csrf/CsrfToken.php
diff options
context:
space:
mode:
authorTobias Schultze <webmaster@tubo-world.de>2013-10-16 19:35:25 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2013-10-17 23:29:16 +0200
commitb82e49d699dfba104ee7661e09a5b76bca25ce41 (patch)
treee01010a1a96309534420846b2e1b9176377e195f /Csrf/CsrfToken.php
parent0d5cfc98fe1d250e7b93c370490f060d3f104416 (diff)
downloadsymfony-security-b82e49d699dfba104ee7661e09a5b76bca25ce41.zip
symfony-security-b82e49d699dfba104ee7661e09a5b76bca25ce41.tar.gz
symfony-security-b82e49d699dfba104ee7661e09a5b76bca25ce41.tar.bz2
[Csrf] component fixes
Diffstat (limited to 'Csrf/CsrfToken.php')
-rw-r--r--Csrf/CsrfToken.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Csrf/CsrfToken.php b/Csrf/CsrfToken.php
index aa3da45..619e0ea 100644
--- a/Csrf/CsrfToken.php
+++ b/Csrf/CsrfToken.php
@@ -28,6 +28,12 @@ class CsrfToken
*/
private $value;
+ /**
+ * Constructor.
+ *
+ * @param string $id The token ID
+ * @param string $value The actual token value
+ */
public function __construct($id, $value)
{
$this->id = (string) $id;
@@ -57,7 +63,7 @@ class CsrfToken
/**
* Returns the value of the CSRF token.
*
- * @return string The token value.
+ * @return string The token value
*/
public function __toString()
{