original_string: public function createStrategy($strategy_type)
  	{
  		if ( $strategy_type == ISessionStrategyFactory::TYPE_ISOLATED ) {
  			return $this->application->getObject('isolated_session_strategy');
  		}
  		elseif ( $strategy_type == ISessionStrategyFactory::TYPE_SHARED ) {
  			return $this->application->getObject('shared_session_strategy');
  		}
  
  		throw new \InvalidArgumentException('Incorrect session strategy type');
  	}
code: public function createStrategy($strategy_type)
  	{
  		if ( $strategy_type == ISessionStrategyFactory::TYPE_ISOLATED ) {
  			return $this->application->getObject('isolated_session_strategy');
  		}
  		elseif ( $strategy_type == ISessionStrategyFactory::TYPE_SHARED ) {
  			return $this->application->getObject('shared_session_strategy');
  		}
  
  		throw new \InvalidArgumentException('Incorrect session strategy type');
  	}
code_tokens: public function createStrategy ( $ strategy_type ) { if ( $ strategy_type == ISessionStrategyFactory :: TYPE_ISOLATED ) { return $ this -> application -> getObject ( 'isolated_session_strategy' ) ; } elseif ( $ strategy_type == ISessionStrategyFactory :: TYPE_SHARED ) { return $ this -> application -> getObject ( 'shared_session_strategy' ) ; } throw new \ InvalidArgumentException ( 'Incorrect session strategy type' ) ; }
docstring: Creates specified session strategy.
  
  @param string $strategy_type Session strategy type.
  
  @return ISessionStrategy
  @throws \InvalidArgumentException When session strategy type is invalid.
docstring_tokens: Creates specified session strategy .