original_string: public function factory( $adapter, $options = null )
      {
          $adapter = parent::factory( $adapter, $options );
          $adapter->setModel( $this->getModel() );
  
          if ( $adapter instanceof ServiceLocatorAwareInterface )
          {
              $adapter->setServiceLocator( $this->getServiceLocator() );
          }
  
          return $adapter;
      }
code: public function factory( $adapter, $options = null )
      {
          $adapter = parent::factory( $adapter, $options );
          $adapter->setModel( $this->getModel() );
  
          if ( $adapter instanceof ServiceLocatorAwareInterface )
          {
              $adapter->setServiceLocator( $this->getServiceLocator() );
          }
  
          return $adapter;
      }
code_tokens: public function factory ( $ adapter , $ options = null ) { $ adapter = parent :: factory ( $ adapter , $ options ) ; $ adapter -> setModel ( $ this -> getModel ( ) ) ; if ( $ adapter instanceof ServiceLocatorAwareInterface ) { $ adapter -> setServiceLocator ( $ this -> getServiceLocator ( ) ) ; } return $ adapter ; }
docstring: Factory an object
  
  @param string|object|array $adapter
  @param object|array|null $options
  @return \Zork\Factory\AdapterInterface
docstring_tokens: Factory an object