public function exchangeArray(array $array)
    {
        foreach ($array as $key => $value) {
            $setMethod = 'set' . StaticFilter::execute(
                    $key, 'WordUnderscoreToCamelCase'
                );

            if (method_exists($this, $setMethod)) {
                $this->$setMethod($value);
            }
        }
    }
public function exchangeArray(array $array)
    {
        foreach ($array as $key => $value) {
            $setMethod = 'set' . StaticFilter::execute(
                    $key, 'WordUnderscoreToCamelCase'
                );

            if (method_exists($this, $setMethod)) {
                $this->$setMethod($value);
            }
        }
    }
public function exchangeArray ( array $ array ) { foreach ( $ array as $ key => $ value ) { $ setMethod = 'set' . StaticFilter :: execute ( $ key , 'WordUnderscoreToCamelCase' ) ; if ( method_exists ( $ this , $ setMethod ) ) { $ this -> $ setMethod ( $ value ) ; } } }
Exchange properties with values from array

@param array $array
Exchange properties with values from array