public function getPermissions()
    {
        $permissions = [[], []];

        foreach ($this->roles as $role) {
            $permissions[] = $role->getPermissions();
        }

        return call_user_func_array('array_merge', $permissions);
    }
public function getPermissions()
    {
        $permissions = [[], []];

        foreach ($this->roles as $role) {
            $permissions[] = $role->getPermissions();
        }

        return call_user_func_array('array_merge', $permissions);
    }
public function getPermissions ( ) { $ permissions = [ [ ] , [ ] ] ; foreach ( $ this -> roles as $ role ) { $ permissions [ ] = $ role -> getPermissions ( ) ; } return call_user_func_array ( 'array_merge' , $ permissions ) ; }
Get all user role permissions.

@return array|null
Get all user role permissions .