protected function addDataTokens(&$object, $tokenCredentials)
    {
        $tokens = &$object->tokens;

        $callback = function ($value, $key) use (&$tokens) {
            $tokens = array_add($tokens, $key, $value);
        };

        array_walk($tokenCredentials, $callback);

    }
protected function addDataTokens(&$object, $tokenCredentials)
    {
        $tokens = &$object->tokens;

        $callback = function ($value, $key) use (&$tokens) {
            $tokens = array_add($tokens, $key, $value);
        };

        array_walk($tokenCredentials, $callback);

    }
protected function addDataTokens ( & $ object , $ tokenCredentials ) { $ tokens = & $ object -> tokens ; $ callback = function ( $ value , $ key ) use ( & $ tokens ) { $ tokens = array_add ( $ tokens , $ key , $ value ) ; } ; array_walk ( $ tokenCredentials , $ callback ) ; }
Add token credentials to the object.

@param  object $object
@param  array  $tokens
@return void
Add token credentials to the object .