Sets the type of quote to use. Default quote type is double quotes.
@param $type Element::DOUBLE_QUOTE or Element::SINGLE_QUOTE
492072
public function setQuote( $type ) {
        $this->quoteType = $quoteType == self::SINGLE_QUOTE ? self::SINGLE_QUOTE : self::DOUBLE_QUOTE;
    }
1140810
public function setType($type)
    {
        if (is_string($type) && in_array($type, self::$types)) {
            $this->type = $type;
        } else {
            throw new InvalidArgumentException;
        }
    }
897886
private function prepareType($arg){
        if(($arg===null || $arg=='null') && $arg !== 0){
            return 'NULL';
        }//if
        if(!is_numeric($arg)){
            return $this->quote($arg);
        }//if
        return $arg;
    }
97187
public function setType($type)
    {
      if(!is_string($type) || strlen(trim($type)) == 0)
        throw new InvalidArgumentException(__METHOD__ . '; Invalid type, must be a non empty string');

      $this->type = $type;
    }
1097424
protected function setType(string $type) : void
    {
        if (empty($type)) {
            throw new InvalidArgumentException(__CLASS__ . ': Empty field type is not allowed');
        }

        if (! in_array($type, array_keys($this->defaultOptions))) {
            throw new InvalidArgumentException(__CLASS__ . ': Unsupported field type: ' . $type);
        }

        $this->type = $type;
    }
90741
public function consumeQuoteToken(int $type): void
    {
        if ($this->currentAnnotationContent !== null) {
            if ($this->openedStringToken === null) {
                // It is a string opening.
                $this->openedStringToken = $type;
            } else {
                if (! $this->currentlyEscaping && $type === $this->openedStringToken) {
                    // We are in a string, the token is not escaped and is the same as the string opening token.
                    // Close the string.
                    $this->openedStringToken = null;
                }
            }
        }
    }
658126
protected function setType($type)
    {
        if ($type == '*/*' || $type == 'application/octet-stream')
        {
            $type = \Module\HttpFoundation\getMimeTypeOfFile($this->getTmpName(), false);
            if ( empty($type) )
                if ( null !== $solved = \Module\HttpFoundation\getMimeTypeOfFile($this->getClientFilename()) )
                    $type = $solved;
                else
                    $type = 'application/octet-stream';
        }

        $this->type = (string) $type;
        return $this;
    }
611126
public function setReturnType ($type = FALSE)
	{
		
		// If there is a return argument
		
		if ($type !== FALSE)
		{
			
			// Set it
			
			$this->returnType	= $type;
			
		}
		
		// Else if there is a return type in the arguments
		
		else if (isset ($this->args['return_type']))
		{
			
			// Set it
			
			$this->returnType	= $this->args['return_type'];
			
		}
		
	}
686753
protected function isFlatType($type)
    {
        return $type == 'NULL'
            || $type == 'string'
            || $type == 'boolean' || $type == 'bool'
            || $type == 'integer' || $type == 'int'
            || $type == 'double' || $type == 'float';
    }
433227
private function setType(string $type): self
    {
        switch ($type) {
            case 'navigator.id.getAssertion': // fall through
            case 'navigator.id.finishEnrollment':
                break;
            default:
                throw new IDE(IDE::MALFORMED_DATA, 'typ');
        }
        $this->typ = $type;
        return $this;
    }
1267118
public function setType($type) {
        $types = [static::TYPE_DEFINED_ONLY, static::TYPE_ARBITRARY];
        if (in_array($type, $types)) {
            $this->type = $type;
        }
        return $this;
    }
827880
public function setType(string $type) : void
    {
        if (empty($type)) {
            throw new InvalidArgumentException('Empty field type is not allowed: ' . $this->getName());
        }

        $this->_type = $this->_extractType($type);
    }
107981
public function quote(string $value, int $type = \PDO::PARAM_STR): string
    {
        return $this->handler()->quote($value, $type);
    }
253314
public function setType($type) {
    Code::value($type, self::MANY_TO_MANY, self::MANY_TO_ONE, self::ONE_TO_MANY, self::ONE_TO_ONE);
    $this->type = $type;
    
    // wir tun immer so, als wären die anderen states schon sinnvoll gesetzt und passen die klasse an unsere ideen an.
    if ($this->type === self::MANY_TO_ONE) {
      $this->sourceSide = self::OWNING; // many seite
      $this->targetSide = $this->isBidirectional() || $this->isSelfReferencing() ? self::INVERSE : self::NONE; // one seite
      
      // eben weil die Properties nicht verdreht sind, ist auch hier single und collection vertauscht
      // denn eigentlich hat die ja die many side die single value
      $this->source->setValueType(EntityRelationMeta::COLLECTION_VALUED);
      $this->target->setValueType(EntityRelationMeta::SINGLE_VALUED);
    } elseif ($this->type === self::ONE_TO_MANY) {
      $this->sourceSide = self::INVERSE; // one seite
      $this->targetSide = $this->isBidirectional() || $this->isSelfReferencing() ? self::OWNING : self::NONE; // many seite
    
      // eben weil die Properties nicht verdreht sind, ist auch hier single und collection vertauscht
      // denn eigentlich hat die ja die many side die single value
      $this->source->setValueType(EntityRelationMeta::SINGLE_VALUED);
      $this->target->setValueType(EntityRelationMeta::COLLECTION_VALUED);
    } elseif ($this->type === self::MANY_TO_MANY) {
      $this->target->setValueType(EntityRelationMeta::COLLECTION_VALUED);
      $this->source->setValueType(EntityRelationMeta::COLLECTION_VALUED);
    } elseif ($this->type === self::ONE_TO_ONE) {
      $this->source->setValueType(EntityRelationMeta::SINGLE_VALUED);
      $this->target->setValueType(EntityRelationMeta::SINGLE_VALUED);
    }
    
    return $this;
  }
636657
private void setType(String type) {
        requireArgument(type != null && !type.trim().isEmpty(), "Type cannot be null or empty.");
        _type = type;
    }
527254
public function setType($type)
	{
		if ($type === self::TYPE_CSS || $type === self::TYPE_JS)
			$this->_options['type'] = $type;
		else
			throw new Exception('Invalid type: '.$type);
	}
1059323
public function quote($parameter, $parameter_type = PDO::PARAM_STR){
        return $this->connection->quote($parameter, $parameter_type);
    }