src/Fadion/Bouncy/BouncyTrait.php
/**
     * Sets the basic Elasticsearch parameters.
     *
     * @param bool $withId
     * @return array
     */
Sets the basic Elasticsearch parameters.
@param bool $withId
@return array
Sets the basic Elasticsearch parameters . @param bool $withId @return array
protected function basicElasticParams($withId = false)
    {
        $params = array(
            'index' => $this->getIndex(),
            'type' => $this->getTypeName()
        );
        if ($withId and $this->getKey()) {
            $params['id'] = $this->getKey();
        }
        return $params;
    }
protected function basicElasticParams ( $ withId = false ) { $ params = array ( 'index' => $ this -> getIndex ( ) , 'type' => $ this -> getTypeName ( ) ) ; if ( $ withId and $ this -> getKey ( ) ) { $ params [ 'id' ] = $ this -> getKey ( ) ; } return $ params ; }
Sets the basic Elasticsearch parameters.
Sets the basic Elasticsearch parameters .