1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php
namespace Riimu\Kit\CSRF\Source;
/**
* Interface for token sources.
* @author Riikka Kalliomäki <riikka.kalliomaki@gmail.com>
* @copyright Copyright (c) 2014, Riikka Kalliomäki
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
interface TokenSource
{
/**
* Returns the token sent in the request or false if none was found.
* @return string|false The sent token or false for none
*/
public function getRequestToken();
}