src/ShopBundle/objects/ArticleList/State.php
public function setUnsetStatesOnly(array $stateValues)
    {
        foreach ($stateValues as $key => $value) {
            if (null === $this->getState($key, null)) {
                $this->setState($key, $value);
            }
        }
    }
public function setUnsetStatesOnly(array $stateValues)
    {
        foreach ($stateValues as $key => $value) {
            if (null === $this->getState($key, null)) {
                $this->setState($key, $value);
            }
        }
    }
public function setUnsetStatesOnly ( array $ stateValues ) { foreach ( $ stateValues as $ key => $ value ) { if ( null === $ this -> getState ( $ key , null ) ) { $ this -> setState ( $ key , $ value ) ; } } }
sets values in stateValues that have no value in the current state. ignores all others.

@param array $stateValues
sets values in stateValues that have no value in the current state . ignores all others .