original_string: protected function _getUserId()
      {
          $callable = $this->config('idCallable');
          $id = 0;
  
          if (is_string($callable)) {
              $session = Session::create();
              $id = $session->read($callable);
          } elseif (is_callable($callable)) {
              $id = $callable();
          }
  
          return (int)$id;
      }
code: protected function _getUserId()
      {
          $callable = $this->config('idCallable');
          $id = 0;
  
          if (is_string($callable)) {
              $session = Session::create();
              $id = $session->read($callable);
          } elseif (is_callable($callable)) {
              $id = $callable();
          }
  
          return (int)$id;
      }
code_tokens: protected function _getUserId ( ) { $ callable = $ this -> config ( 'idCallable' ) ; $ id = 0 ; if ( is_string ( $ callable ) ) { $ session = Session :: create ( ) ; $ id = $ session -> read ( $ callable ) ; } elseif ( is_callable ( $ callable ) ) { $ id = $ callable ( ) ; } return ( int ) $ id ; }
docstring: Gets current User's ID.
  
  @return int User ID, zero if not found
docstring_tokens: Gets current User s ID .