original_string: public function newInstance($cloned = array())
      {
          if ($cloned instanceof Model) {
              $cloned = $cloned->toArray(Model::FETCH_PUBLISHED);
          }
  
          if (isset($this->options['model'])) {
              $Model = $this->options['model'];
              return new $Model($cloned, array('collection' => $this));
          } else {
              return new Model($cloned, array('collection' => $this));
          }
      }
code: public function newInstance($cloned = array())
      {
          if ($cloned instanceof Model) {
              $cloned = $cloned->toArray(Model::FETCH_PUBLISHED);
          }
  
          if (isset($this->options['model'])) {
              $Model = $this->options['model'];
              return new $Model($cloned, array('collection' => $this));
          } else {
              return new Model($cloned, array('collection' => $this));
          }
      }
code_tokens: public function newInstance ( $ cloned = array ( ) ) { if ( $ cloned instanceof Model ) { $ cloned = $ cloned -> toArray ( Model :: FETCH_PUBLISHED ) ; } if ( isset ( $ this -> options [ 'model' ] ) ) { $ Model = $ this -> options [ 'model' ] ; return new $ Model ( $ cloned , array ( 'collection' => $ this ) ) ; } else { return new Model ( $ cloned , array ( 'collection' => $ this ) ) ; } }
docstring: Create new instance of model
  
  @param array|\Norm\Model $cloned Model to clone
  
  @return \Norm\Model
docstring_tokens: Create new instance of model