protected function setValue($entity, $value, $setter)
    {
        if (method_exists($entity, $setter)) {
            $entity->$setter($value);
        }
    }
protected function setValue($entity, $value, $setter)
    {
        if (method_exists($entity, $setter)) {
            $entity->$setter($value);
        }
    }
protected function setValue ( $ entity , $ value , $ setter ) { if ( method_exists ( $ entity , $ setter ) ) { $ entity -> $ setter ( $ value ) ; } }
Call a setter of the entity

@param object $entity
@param mixed  $value
@param string $setter
Call a setter of the entity