Akismet for PHP

Blog
in package
implements JsonSerializable

Represents the front page or home URL transmitted when making requests.

Interfaces, Classes, Traits and Enums

JsonSerializable

Table of Contents

$charset  : string
The character encoding for the values included in comments.
$languages  : array<string|int, mixed>
The languages in use on the blog or site, in ISO 639-1 format.
$url  : UriInterface|null
The blog or site URL.
__construct()  : mixed
Creates a new blog.
fromJson()  : self
Creates a new blog from the specified JSON object.
jsonSerialize()  : stdClass
Converts this object to a map in JSON format.

Properties

$charset

The character encoding for the values included in comments.

public string $charset

$languages

The languages in use on the blog or site, in ISO 639-1 format.

public array<string|int, mixed> $languages

$url

The blog or site URL.

public UriInterface|null $url

Methods

__construct()

Creates a new blog.

public __construct(string $url[, string $charset = "" ][, array<string|int, string> $languages = [] ]) : mixed
Parameters
$url : string

The blog or site URL.

$charset : string = ""

The character encoding for the values included in comments.

$languages : array<string|int, string> = []

The languages in use on the blog or site, in ISO 639-1 format.

Return values
mixed

fromJson()

Creates a new blog from the specified JSON object.

public static fromJson(object $json) : self
Parameters
$json : object

A JSON object representing a blog.

Return values
self

The instance corresponding to the specified JSON object.

jsonSerialize()

Converts this object to a map in JSON format.

public jsonSerialize() : stdClass
Return values
stdClass

The map in JSON format corresponding to this object.

Search results