public function setAdaptive($adaptive)
    {
        if (is_bool($adaptive)) {
            $this->adaptive = $adaptive;
        } else {
            $msg = "The adaptive argument must be a boolean, '" . gettype($adaptive) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAdaptive($adaptive)
    {
        if (is_bool($adaptive)) {
            $this->adaptive = $adaptive;
        } else {
            $msg = "The adaptive argument must be a boolean, '" . gettype($adaptive) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAdaptive ( $ adaptive ) { if ( is_bool ( $ adaptive ) ) { $ this -> adaptive = $ adaptive ; } else { $ msg = "The adaptive argument must be a boolean, '" . gettype ( $ adaptive ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set whether the item is adaptive.

@param boolean $adaptive Adaptive or not.
@throws \InvalidArgumentException If $adaptive is not a boolean value.
Set whether the item is adaptive .