public function setSources(array $sources)
    {
        $this->sources = array_map(function (Source\TokenSource $source) {
            return $source;
        }, $sources);
    }
public function setSources(array $sources)
    {
        $this->sources = array_map(function (Source\TokenSource $source) {
            return $source;
        }, $sources);
    }
public function setSources ( array $ sources ) { $ this -> sources = array_map ( function ( Source \ TokenSource $ source ) { return $ source ; } , $ sources ) ; }
Sets the possible sources for submitted token.

Multiple sources can be added using an array. The handler will look for
the token from the sources in the order they appear in the array.

@param Source\TokenSource[] $sources List of token sources.
Sets the possible sources for submitted token .