Set destructive mapping option

@param $destructiveMapping
@return $this
181725
public function setDestructiveMapping($destructiveMapping)
    {
        if (empty($this->mappingOptions)) $this->resetMappingOptions();

        $this->mappingOptions->destructiveMapping = $destructiveMapping;

        return $this;
    }
672518
public function setEmbeddable()
    {
        $this->cm->isEmbeddedClass = true;
        $this->cm->isMappedSuperclass = false;

        return $this;
    }
260080
protected function setMappings(array $mappings = array())
    {
        foreach ($mappings as $mapping) {
            if (!$mapping instanceof ImsManifestMapping) {
                $msg = "The mappings argument must be an array composed of ImsManifestMapping objects";
                throw new InvalidArgumentException($msg);
            }
        }

        $this->mappings = $mappings;
    }
1017725
function del($key)
    {
        if ($key !== $hash = $this->_normalizeKey($key))
            $key = $hash;

        $properties = &$this->_referDataArrayReference();

        if (array_key_exists($key, $properties)) {
            unset($properties[$key]);
            unset($this->__mapedPropObjects[$hash]);
        }

        return $this;
    }
1187848
public function destroy()
    {
        $this->memcached->flush();
        $this->close();
        $this->memcached = null;

        return $this;
    }
156921
public function putAll($map)
    {
        foreach ($map as $key => $val) {
            $this->put($key, $val);
        }

        return $this;
    }
912264
public function map($map = null) {
		if ($map !== null) {
			$this->_map = $map;
			return $this;
		}
		return $this->_map;
	}
61265
public function resetModifiers($key = false) {
		if ($key) {
			unset($this->modifiers[$key]);
		} else {
			$this->modifiers = array();
		}
		return $this;
	}
627475
public function map($callback)
    {
        if (!is_callable($callback)) {
            throw new \InvalidArgumentException('Mapping function is not callable!');
        }

        $this->attributes = array_map($callback, $this->attributes);

        return $this;
    }
46841
public function registerMaps(array $maps)
    {
        foreach ($maps as $name => $map) {
            $this->maps[$name] = $map;
        }

        return $this;
    }
220550
function(key) {
        this._removeAddsOrRemoves(this.maps.modify, key);
        if (this.maps.remove.indexOf(key) === -1) {
            this.maps.remove.push(key);
        }
        return this;
    }
204454
public function build(Map $map)
    {
        $this->setDefaults($map);
        $this->addRoutes($map);
        return $this;
    }
900181
public function transform(callable $callback): self
    {
        $index = 0;
        foreach ($this->items as $key => $value) {
            $this->set($key, $callback($value, $key, $index++));
        }

        return $this;
    }
1185428
protected function setLocation()
    {
        if (!isset($this->job)) {
            throw new \InvalidArgumentException('cannot create a viewModel for Templates without aa $job');
        }
        $location = $this->job->getLocation();
        $this->container['location'] = isset($location)?$location:'';
        return $this;
    }
386438
public function setMap($map = []) {
        $this->flush();
        $this->shared = array_fill_keys($map, null);
        $this->type = static::TYPE_DEFINED_ONLY;
        return $this;
    }
90933
public static function deleteMapping()
    {
        $instance = new static;

        $params = $instance->getBasicEsParams();

        return $instance->getElasticSearchClient()->indices()->deleteMapping($params);
    }
945961
public function setMethod($method)
	{
		if ($method === null || !is_array($method) || empty($method)) {
			throw new InvalidArgumentException('No method provided');
		}

		foreach ($method as $m) {
			if (!in_array($m, array('GET','POST','PUT','PATCH','DELETE'))) {
				throw new InvalidArgumentException('Method not allowed. allowed methods: GET, POST, PUT, PATCH, DELETE');
			}
		}

		$this->method = $method;

		return $this;
	}