private function setObjectProperty($entity, $name, $value)
    {
        $setter = 'set'.ucfirst($name);

        if (!method_exists($entity, $setter)) {
            throw RestException::missingSetter($entity, $name, $setter);
        }

        return $entity->$setter($value);
    }
private function setObjectProperty($entity, $name, $value)
    {
        $setter = 'set'.ucfirst($name);

        if (!method_exists($entity, $setter)) {
            throw RestException::missingSetter($entity, $name, $setter);
        }

        return $entity->$setter($value);
    }
private function setObjectProperty ( $ entity , $ name , $ value ) { $ setter = 'set' . ucfirst ( $ name ) ; if ( ! method_exists ( $ entity , $ setter ) ) { throw RestException :: missingSetter ( $ entity , $ name , $ setter ) ; } return $ entity -> $ setter ( $ value ) ; }
Set property on entity object.

@param object $entity
@param string $name
@param mixed  $value

@return object
@throws RestException
Set property on entity object .