original_string: protected function helper_setup(\tool_log\log\manager $manager) {
          $this->manager = $manager;
          $called = get_called_class();
          $parts = explode('\\', $called);
          if (!isset($parts[0]) || strpos($parts[0], 'logstore_') !== 0) {
              throw new \coding_exception("Store $called doesn't define classes in correct namespaces.");
          }
          $this->component = $parts[0];
          $this->store = str_replace('logstore_', '', $this->store);
      }
code: protected function helper_setup(\tool_log\log\manager $manager) {
          $this->manager = $manager;
          $called = get_called_class();
          $parts = explode('\\', $called);
          if (!isset($parts[0]) || strpos($parts[0], 'logstore_') !== 0) {
              throw new \coding_exception("Store $called doesn't define classes in correct namespaces.");
          }
          $this->component = $parts[0];
          $this->store = str_replace('logstore_', '', $this->store);
      }
code_tokens: protected function helper_setup ( \ tool_log \ log \ manager $ manager ) { $ this -> manager = $ manager ; $ called = get_called_class ( ) ; $ parts = explode ( '\\' , $ called ) ; if ( ! isset ( $ parts [ 0 ] ) || strpos ( $ parts [ 0 ] , 'logstore_' ) !== 0 ) { throw new \ coding_exception ( "Store $called doesn't define classes in correct namespaces." ) ; } $ this -> component = $ parts [ 0 ] ; $ this -> store = str_replace ( 'logstore_' , '' , $ this -> store ) ; }
docstring: Setup store specific variables.
  
  @param \tool_log\log\manager $manager manager instance.
docstring_tokens: Setup store specific variables .