setContent #
Replaces the content of User.
setContent(data) #
Arguments | Type | Description |
---|---|---|
data | JSON Object | User content |
Return Value #
Returns the User
object.
Usage #
<?php
use Kuzzle\Security\User;
// ...
$userContent = [
'profileIds' => ['profileId']
];
/*
* @var $user User
*/
$user->setContent($userContent);
Edit this page on Github(opens new window)