original_string: public function initializeClass()
      {
          if (!isset($this->options['services']) || !is_array($this->options['services'])) {
              return;
          }
          
          if ($this->getPersistence() && $this->getCache() !== null && ($definition = $this->getCache()->getItem('jrpc-definition')) !== null && ($serviceMap = $this->getCache()->getItem('jrpc-serviceMap')) !== null) {
              $this->table = $definition;
              $this->serviceMap = $serviceMap;
              
              return;
          }
          
          foreach ($this->options['services'] as $c) {
              $this->setClass($c, ((isset($c['namespace'])) ? $c['namespace'] : ''));
          }
          
          if ($this->getPersistence() && $this->getCache() !== null) {
              $this->getCache()->setItem('jrpc-definition', $this->table);
              $this->getCache()->setItem('jrpc-serviceMap', $this->serviceMap);
          }
      }
code: public function initializeClass()
      {
          if (!isset($this->options['services']) || !is_array($this->options['services'])) {
              return;
          }
          
          if ($this->getPersistence() && $this->getCache() !== null && ($definition = $this->getCache()->getItem('jrpc-definition')) !== null && ($serviceMap = $this->getCache()->getItem('jrpc-serviceMap')) !== null) {
              $this->table = $definition;
              $this->serviceMap = $serviceMap;
              
              return;
          }
          
          foreach ($this->options['services'] as $c) {
              $this->setClass($c, ((isset($c['namespace'])) ? $c['namespace'] : ''));
          }
          
          if ($this->getPersistence() && $this->getCache() !== null) {
              $this->getCache()->setItem('jrpc-definition', $this->table);
              $this->getCache()->setItem('jrpc-serviceMap', $this->serviceMap);
          }
      }
code_tokens: public function initializeClass ( ) { if ( ! isset ( $ this -> options [ 'services' ] ) || ! is_array ( $ this -> options [ 'services' ] ) ) { return ; } if ( $ this -> getPersistence ( ) && $ this -> getCache ( ) !== null && ( $ definition = $ this -> getCache ( ) -> getItem ( 'jrpc-definition' ) ) !== null && ( $ serviceMap = $ this -> getCache ( ) -> getItem ( 'jrpc-serviceMap' ) ) !== null ) { $ this -> table = $ definition ; $ this -> serviceMap = $ serviceMap ; return ; } foreach ( $ this -> options [ 'services' ] as $ c ) { $ this -> setClass ( $ c , ( ( isset ( $ c [ 'namespace' ] ) ) ? $ c [ 'namespace' ] : '' ) ) ; } if ( $ this -> getPersistence ( ) && $ this -> getCache ( ) !== null ) { $ this -> getCache ( ) -> setItem ( 'jrpc-definition' , $ this -> table ) ; $ this -> getCache ( ) -> setItem ( 'jrpc-serviceMap' , $ this -> serviceMap ) ; } }
docstring: Initialize all class.
docstring_tokens: Initialize all class .