To string.
@return string
185269
public function toString(): string
    {
        $content = $this->content;
        $contentType = $this->contentType;

        if ($this->isString()) {
            return $content;
        } elseif ($this->isImage()) {
            switch ($contentType) {
                case self::CONTENT_TYPE_IMAGE_JPEG:
                    imagejpeg($content)
                        && imagedestroy($content);
                    break;
                case self::CONTENT_TYPE_IMAGE_PNG:
                    imagepng($content)
                        && imagedestroy($content);
                    break;
                case self::CONTENT_TYPE_IMAGE_GIF:
                    imagegif($content)
                        && imagedestroy($content);
                    break;
                default:
                    throw new HttpException("Unimplemented content type '{$contentType}'");
            }
            return '';
        }
    }
1111665
public function toString()
    {

        $transaction = array();
        $transaction['code'] = $this->code;
        $transaction['email'] = $this->sender ? $this->sender->getEmail() : "null";
        $transaction['date'] = $this->date;
        $transaction['reference'] = $this->reference;
        $transaction['status'] = $this->status ? $this->status->getValue() : "null";
        $transaction['itemsCount'] = is_array($this->items) ? count($this->items) : "null";

        $transaction = "Transaction: " . var_export($transaction, true);

        return $transaction;

    }
539258
public function to_string(): string
	{
		return 'oauth_token=' .
			Util::urlencode_rfc3986($this->key) .
			'&oauth_token_secret=' .
			Util::urlencode_rfc3986($this->secret);
	}
1230644
public function toString()
    {
        $parts = [];
        $data = $this->data();
        $parts[] = $data['name'] . '=' . rawurlencode($data['value']);

        if ($data['domain']) {
            $parts[] = 'Domain=' . $data['domain'];
        }
        if ($data['path']) {
            $parts[] = 'Path=' . $data['path'];
        }
        if (isset($data['max-age'])) {
            $parts[] = 'Max-Age=' . (string) $data['max-age'];
        } elseif (isset($data['expires'])) {
            $parts[] = 'Expires=' . gmdate('D, d M Y H:i:s \G\M\T', $data['expires']);
        }
        if ($data['secure']) {
            $parts[] = 'Secure';
        }
        if ($data['httponly']) {
            $parts[] = 'HttpOnly';
        }
        return join('; ', $parts);
    }
563278
public function toString()
    {
        $output = 'data:';

        if (($this->getMediaType() !== self::DEFAULT_TYPE) || ($this->getEncoding() !== self::ENCODING_URL_ENCODED_OCTETS)) {
            $output .= $this->getMediaType();

            if ($this->getEncoding() === self::ENCODING_BASE64) {
                $output .= ';'.self::BASE64_KEYWORD;
            }
        }

        $output .= ','.$this->getEncodedData();

        return $output;
    }
655809
public function toString(): string
    {
        $parts = array_map(
            function (RDN $rdn) {
                return $rdn->toString();
            }, array_reverse($this->_rdns));
        return implode(",", $parts);
    }
274262
public function toString()
    {
        $status = sprintf('HTTP/%s %d %s', $this->getVersion(), $this->getStatusCode(), $this->getStatusMessage());

        $str  = trim($status) . "\r\n";
        $str .= $this->getHeaders();
        $str .= "\r\n";
        $str .= $this->getContent();
        return $str;
    }
546377
public function toString(): string
    {
        $message = "the element [{$this->selector}]";

        if (! empty($this->attributes)) {
            $message .= ' with the attributes '.json_encode($this->attributes);
        }

        return $message;
    }
224089
public function toString()
    {
        if ($this->isEmpty()) {
            return '';
        }

        $tabulationFormatted = $this->getTabulationFormatted();

        $string = '{' . PHP_EOL;
        $string .= $this->toStringMethods();
        $string .= $tabulationFormatted . '}';
        return $string . PHP_EOL;
    }
1098973
public function toString()
    {
        if (count($children = $this->getChildren()) > 0 && '' != $this->getBody()) {
            $this->setChildren(array_merge([$this->becomeMimePart()], $children));
            $string = parent::toString();
            $this->setChildren($children);
        } else {
            $string = parent::toString();
        }

        return $string;
    }
1107888
public function toString() {

		$country	= isset( $this->countryName ) ? $this->countryName : $this->country->name;
		$province	= isset( $this->provinceName ) ? $this->provinceName : $this->province->name;
		$region		= isset( $this->regionName ) ? $this->regionName : ( isset( $this->region ) ? $this->region->name : null );
		$address	= $this->line1;

		if( !empty( $this->line2 ) ) {

			$address .= ", $this->line2";
		}

		if( !empty( $this->line3 ) ) {

			$address .= ", $this->line3";
		}

		if( !empty( $this->cityName ) ) {

			$address .= ", $this->cityName";
		}

		if( !empty( $this->zip ) ) {

			$address .= ", $this->zip";
		}

		if( !empty( $region ) ) {

			$address .= ", $region";
		}

		$address .= ", $province, $country";
		//$address .= ", $this->zip";

		return $address;
	}
700028
public function toString() {
        $documentation = preg_replace_callback(
            '@\r?\n@',
            function ($matches) {
                return $matches[0] . ' * ';
            },
            trim($this->getDocumentation())
        );
        if($documentation == '') {
            $documentation = $this->getName();
        }
        $buffer = '<?php
namespace ' . $this->getNamespace() . ';
';
        foreach($this->getUses() as $use) {
            $buffer .= 'use ' . $use . ';' . "\n";
        }
        $buffer .= '/**
 * ' . $documentation . '
 */
' . ($this->isAbstract() ? 'abstract ' : '') . 'class ' . $this->getName() . ' extends ' . $this->getExtends() . (sizeOf($this->getImplements()) > 0 ? ' implements ' . implode(', ', $this->getImplements()) : '') . ' {
';
        foreach($this->getTraits() as $trait) {
            $buffer .= '	use ' . $trait . ';
';
        }
        foreach($this->getConstants() as $name => $value) {
            $buffer .= '	const ' . $name . ' = \'' . str_replace("'", "\\'", $value) . '\';
';
        }
        foreach($this->getVariables() as $variable) {
            $buffer .= $variable->toString();
        }
        foreach($this->getMethods() as $method) {
            $buffer .= $method->toString();
        }
        $buffer .= '}';
        return str_replace("\r\n", "\n", $buffer);
    }
25293
public function toString()
    {
        $matchToString = function ($key, $value) {
            return ' "' . $key . '" is "' . $value . '"';
        };

        $matchesToString = function ($matches) use ($matchToString) {
            $matchesAsString = implode(' and ', array_map(
                $matchToString,
                array_keys($matches),
                array_values($matches)
            ));

            return '(' . $matchesAsString . ')';
        };

        $allMatchesAsString = implode(
            "\n or ",
            array_map($matchesToString, $this->matches)
        );


        return $this->getStubForToString() . $allMatchesAsString;
    }
830433
public function toString()
    {
        $query = '';

        switch ($this->type) {
            case 'select':
                $query .= (string) $this->select;
                $query .= (string) $this->from;

                if ($this->join) {
                    // Special case for joins
                    foreach ($this->join as $join) {
                        $query .= (string) $join;
                    }
                }

                if ($this->where) {
                    $query .= (string) $this->where;
                }

                if ($this->group) {
                    $query .= (string) $this->group;
                }

                if ($this->having) {
                    $query .= (string) $this->having;
                }

                if ($this->order) {
                    $query .= (string) $this->order;
                }

                if ($this->forUpdate) {
                    $query .= (string) $this->forUpdate;
                } else {
                    if ($this->forShare) {
                        $query .= (string) $this->forShare;
                    }
                }

                if ($this->noWait) {
                    $query .= (string) $this->noWait;
                }

                break;

            case 'update':
                $query .= (string) $this->update;
                $query .= (string) $this->set;

                if ($this->join) {
                    $onWord = ' ON ';

                    // Workaround for special case of JOIN with UPDATE
                    foreach ($this->join as $join) {
                        $joinElem = $join->getElements();

                        $joinArray = explode($onWord, $joinElem[0]);

                        $this->from($joinArray[0]);
                        $this->where($joinArray[1]);
                    }

                    $query .= (string) $this->from;
                }

                if ($this->where) {
                    $query .= (string) $this->where;
                }

                break;

            case 'insert':
                $query .= (string) $this->insert;

                if ($this->values) {
                    if ($this->columns) {
                        $query .= (string) $this->columns;
                    }

                    $elements = $this->values->getElements();

                    if (!($elements[0] instanceof $this)) {
                        $query .= ' VALUES ';
                    }

                    $query .= (string) $this->values;

                    if ($this->returning) {
                        $query .= (string) $this->returning;
                    }
                }

                break;

            default:
                $query = parent::toString();
                break;
        }

        $query = $this->processLimit($query, $this->limit, $this->offset);

        if ($this->suffix) {
            $query .= ' ' . (string) $this->suffix;
        }

        if ($this->type === 'select' && $this->alias !== null) {
            $query = sprintf('(%s) AS %s', $query, $this->alias);
        }

        return $query;
    }
758233
public function toString()
    {
        $type = $this->type;

        if($this->override)
            $this->attributes['value'] = $this->override;

        $attributes = $this->buildAttributes();

        return '<input type="'.$type.'" '.$attributes.' />';
    }
29510
public function toString()
	{
		if( function_exists( 'mb_convert_case' ) )
			$name	= mb_convert_case( $this->name, MB_CASE_TITLE );
		else
			$name	= str_replace( " ", "-", ucwords( str_replace( "-", " ", $this->name ) ) );
		return $name.": ".$this->value;
	}
1172100
public function ToString()
	{
		$result = $this->LocalName;

		if ( ! empty( $this->Prefix ) )
		{
		    $result = $this->Prefix . ':' . $result;
		}
		return $result;
	}