src/ShopBundle/objects/ArticleList/State.php
public function getStateString(array $varyingStateParameter = null)
    {
        $stateInput = $this->getStateArrayWithoutQueryParameter();
        $parts = array();
        foreach ($stateInput as $key => $value) {
            if (null !== $varyingStateParameter && in_array($key, $varyingStateParameter)) {
                continue;
            }
            $parts[] = $key.':'.$value;
        }

        if (0 === count($parts)) {
            return '';
        }

        return implode(',', $parts);
    }
public function getStateString(array $varyingStateParameter = null)
    {
        $stateInput = $this->getStateArrayWithoutQueryParameter();
        $parts = array();
        foreach ($stateInput as $key => $value) {
            if (null !== $varyingStateParameter && in_array($key, $varyingStateParameter)) {
                continue;
            }
            $parts[] = $key.':'.$value;
        }

        if (0 === count($parts)) {
            return '';
        }

        return implode(',', $parts);
    }
public function getStateString ( array $ varyingStateParameter = null ) { $ stateInput = $ this -> getStateArrayWithoutQueryParameter ( ) ; $ parts = array ( ) ; foreach ( $ stateInput as $ key => $ value ) { if ( null !== $ varyingStateParameter && in_array ( $ key , $ varyingStateParameter ) ) { continue ; } $ parts [ ] = $ key . ':' . $ value ; } if ( 0 === count ( $ parts ) ) { return '' ; } return implode ( ',' , $ parts ) ; }
returns a string representation of the state, excluding the parameter specified by varyingStateParameter.

@param array|null $varyingStateParameter

@return string
returns a string representation of the state excluding the parameter specified by varyingStateParameter .