summaryrefslogtreecommitdiffstats
path: root/Core/Authentication
diff options
context:
space:
mode:
Diffstat (limited to 'Core/Authentication')
-rw-r--r--Core/Authentication/AuthenticationManagerInterface.php2
-rw-r--r--Core/Authentication/AuthenticationTrustResolverInterface.php6
-rw-r--r--Core/Authentication/RememberMe/PersistentTokenInterface.php10
-rw-r--r--Core/Authentication/RememberMe/TokenProviderInterface.php8
-rw-r--r--Core/Authentication/Token/TokenInterface.php28
5 files changed, 27 insertions, 27 deletions
diff --git a/Core/Authentication/AuthenticationManagerInterface.php b/Core/Authentication/AuthenticationManagerInterface.php
index 36cdc92..d8f4716 100644
--- a/Core/Authentication/AuthenticationManagerInterface.php
+++ b/Core/Authentication/AuthenticationManagerInterface.php
@@ -31,5 +31,5 @@ interface AuthenticationManagerInterface
*
* @throws AuthenticationException if the authentication fails
*/
- function authenticate(TokenInterface $token);
+ public function authenticate(TokenInterface $token);
}
diff --git a/Core/Authentication/AuthenticationTrustResolverInterface.php b/Core/Authentication/AuthenticationTrustResolverInterface.php
index adcef3c..ac07db0 100644
--- a/Core/Authentication/AuthenticationTrustResolverInterface.php
+++ b/Core/Authentication/AuthenticationTrustResolverInterface.php
@@ -30,7 +30,7 @@ interface AuthenticationTrustResolverInterface
*
* @return Boolean
*/
- function isAnonymous(TokenInterface $token = null);
+ public function isAnonymous(TokenInterface $token = null);
/**
* Resolves whether the passed token implementation is authenticated
@@ -40,7 +40,7 @@ interface AuthenticationTrustResolverInterface
*
* @return Boolean
*/
- function isRememberMe(TokenInterface $token = null);
+ public function isRememberMe(TokenInterface $token = null);
/**
* Resolves whether the passed token implementation is fully authenticated.
@@ -49,5 +49,5 @@ interface AuthenticationTrustResolverInterface
*
* @return Boolean
*/
- function isFullFledged(TokenInterface $token = null);
+ public function isFullFledged(TokenInterface $token = null);
}
diff --git a/Core/Authentication/RememberMe/PersistentTokenInterface.php b/Core/Authentication/RememberMe/PersistentTokenInterface.php
index 38acbc3..6e9d891 100644
--- a/Core/Authentication/RememberMe/PersistentTokenInterface.php
+++ b/Core/Authentication/RememberMe/PersistentTokenInterface.php
@@ -23,29 +23,29 @@ interface PersistentTokenInterface
* Returns the class of the user
* @return string
*/
- function getClass();
+ public function getClass();
/**
* Returns the username
* @return string
*/
- function getUsername();
+ public function getUsername();
/**
* Returns the series
* @return string
*/
- function getSeries();
+ public function getSeries();
/**
* Returns the token value
* @return string
*/
- function getTokenValue();
+ public function getTokenValue();
/**
* Returns the last time the cookie was used
* @return \DateTime
*/
- function getLastUsed();
+ public function getLastUsed();
}
diff --git a/Core/Authentication/RememberMe/TokenProviderInterface.php b/Core/Authentication/RememberMe/TokenProviderInterface.php
index db40a1c..c8cfbd1 100644
--- a/Core/Authentication/RememberMe/TokenProviderInterface.php
+++ b/Core/Authentication/RememberMe/TokenProviderInterface.php
@@ -27,14 +27,14 @@ interface TokenProviderInterface
*
* @return PersistentTokenInterface
*/
- function loadTokenBySeries($series);
+ public function loadTokenBySeries($series);
/**
* Deletes all tokens belonging to series.
*
* @param string $series
*/
- function deleteTokenBySeries($series);
+ public function deleteTokenBySeries($series);
/**
* Updates the token according to this data.
@@ -43,12 +43,12 @@ interface TokenProviderInterface
* @param string $tokenValue
* @param DateTime $lastUsed
*/
- function updateToken($series, $tokenValue, \DateTime $lastUsed);
+ public function updateToken($series, $tokenValue, \DateTime $lastUsed);
/**
* Creates a new token.
*
* @param PersistentTokenInterface $token
*/
- function createNewToken(PersistentTokenInterface $token);
+ public function createNewToken(PersistentTokenInterface $token);
}
diff --git a/Core/Authentication/Token/TokenInterface.php b/Core/Authentication/Token/TokenInterface.php
index 3dafccc..dec31d5 100644
--- a/Core/Authentication/Token/TokenInterface.php
+++ b/Core/Authentication/Token/TokenInterface.php
@@ -26,21 +26,21 @@ interface TokenInterface extends \Serializable
*
* @return string
*/
- function __toString();
+ public function __toString();
/**
* Returns the user roles.
*
* @return Role[] An array of Role instances.
*/
- function getRoles();
+ public function getRoles();
/**
* Returns the user credentials.
*
* @return mixed The user credentials
*/
- function getCredentials();
+ public function getCredentials();
/**
* Returns a user representation.
@@ -48,54 +48,54 @@ interface TokenInterface extends \Serializable
* @return mixed either returns an object which implements __toString(), or
* a primitive string is returned.
*/
- function getUser();
+ public function getUser();
/**
* Sets a user.
*
* @param mixed $user
*/
- function setUser($user);
+ public function setUser($user);
/**
* Returns the username.
*
* @return string
*/
- function getUsername();
+ public function getUsername();
/**
* Returns whether the user is authenticated or not.
*
* @return Boolean true if the token has been authenticated, false otherwise
*/
- function isAuthenticated();
+ public function isAuthenticated();
/**
* Sets the authenticated flag.
*
* @param Boolean $isAuthenticated The authenticated flag
*/
- function setAuthenticated($isAuthenticated);
+ public function setAuthenticated($isAuthenticated);
/**
* Removes sensitive information from the token.
*/
- function eraseCredentials();
+ public function eraseCredentials();
/**
* Returns the token attributes.
*
* @return array The token attributes
*/
- function getAttributes();
+ public function getAttributes();
/**
* Sets the token attributes.
*
* @param array $attributes The token attributes
*/
- function setAttributes(array $attributes);
+ public function setAttributes(array $attributes);
/**
* Returns true if the attribute exists.
@@ -104,7 +104,7 @@ interface TokenInterface extends \Serializable
*
* @return Boolean true if the attribute exists, false otherwise
*/
- function hasAttribute($name);
+ public function hasAttribute($name);
/**
* Returns an attribute value.
@@ -115,7 +115,7 @@ interface TokenInterface extends \Serializable
*
* @throws \InvalidArgumentException When attribute doesn't exist for this token
*/
- function getAttribute($name);
+ public function getAttribute($name);
/**
* Sets an attribute.
@@ -123,5 +123,5 @@ interface TokenInterface extends \Serializable
* @param string $name The attribute name
* @param mixed $value The attribute value
*/
- function setAttribute($name, $value);
+ public function setAttribute($name, $value);
}