Documentation

News extends Message
in package

Generated from protobuf message <code>website.app.models.News</code>

Table of Contents

Properties

$author  : mixed
Generated from protobuf field <code>string author = 4 [json_name = "author"];</code>
$cover  : mixed
Generated from protobuf field <code>.website.app.models.Cover cover = 6 [json_name = "cover"];</code>
$name  : mixed
Format: news/{code}
$section  : mixed
Format: sections/{code}
$slug  : mixed
Generated slug for this news.
$subtitle  : mixed
Generated from protobuf field <code>string subtitle = 3 [json_name = "subtitle"];</code>
$title  : mixed
Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>

Methods

__construct()  : mixed
Constructor.
clearCover()  : mixed
getAuthor()  : string
Generated from protobuf field <code>string author = 4 [json_name = "author"];</code>
getCover()  : Cover|null
Generated from protobuf field <code>.website.app.models.Cover cover = 6 [json_name = "cover"];</code>
getName()  : string
Format: news/{code}
getSection()  : string
Format: sections/{code}
getSlug()  : string
Generated slug for this news.
getSubtitle()  : string
Generated from protobuf field <code>string subtitle = 3 [json_name = "subtitle"];</code>
getTitle()  : string
Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>
hasCover()  : mixed
setAuthor()  : $this
Generated from protobuf field <code>string author = 4 [json_name = "author"];</code>
setCover()  : $this
Generated from protobuf field <code>.website.app.models.Cover cover = 6 [json_name = "cover"];</code>
setName()  : $this
Format: news/{code}
setSection()  : $this
Format: sections/{code}
setSlug()  : $this
Generated slug for this news.
setSubtitle()  : $this
Generated from protobuf field <code>string subtitle = 3 [json_name = "subtitle"];</code>
setTitle()  : $this
Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>

Properties

$author

Generated from protobuf field <code>string author = 4 [json_name = "author"];</code>

protected mixed $author = ''

$cover

Generated from protobuf field <code>.website.app.models.Cover cover = 6 [json_name = "cover"];</code>

protected mixed $cover = null

$name

Format: news/{code}

protected mixed $name = ''

Generated from protobuf field string name = 1 [json_name = "name"];

$section

Format: sections/{code}

protected mixed $section = ''

Generated from protobuf field string section = 5 [json_name = "section"];

$slug

Generated slug for this news.

protected mixed $slug = ''

Generated from protobuf field string slug = 7 [json_name = "slug"];

$subtitle

Generated from protobuf field <code>string subtitle = 3 [json_name = "subtitle"];</code>

protected mixed $subtitle = ''

$title

Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>

protected mixed $title = ''

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type string $name
      Format: news/{code}
@type string $title
@type string $subtitle
@type string $author
@type string $section
      Format: sections/{code}
@type \Website\App\Models\Cover $cover
@type string $slug
      Generated slug for this news.

}

clearCover()

public clearCover() : mixed

getAuthor()

Generated from protobuf field <code>string author = 4 [json_name = "author"];</code>

public getAuthor() : string
Return values
string

getCover()

Generated from protobuf field <code>.website.app.models.Cover cover = 6 [json_name = "cover"];</code>

public getCover() : Cover|null
Return values
Cover|null

getName()

Format: news/{code}

public getName() : string

Generated from protobuf field string name = 1 [json_name = "name"];

Return values
string

getSection()

Format: sections/{code}

public getSection() : string

Generated from protobuf field string section = 5 [json_name = "section"];

Return values
string

getSlug()

Generated slug for this news.

public getSlug() : string

Generated from protobuf field string slug = 7 [json_name = "slug"];

Return values
string

getSubtitle()

Generated from protobuf field <code>string subtitle = 3 [json_name = "subtitle"];</code>

public getSubtitle() : string
Return values
string

getTitle()

Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>

public getTitle() : string
Return values
string

hasCover()

public hasCover() : mixed

setAuthor()

Generated from protobuf field <code>string author = 4 [json_name = "author"];</code>

public setAuthor(string $var) : $this
Parameters
$var : string
Return values
$this

setCover()

Generated from protobuf field <code>.website.app.models.Cover cover = 6 [json_name = "cover"];</code>

public setCover(Cover $var) : $this
Parameters
$var : Cover
Return values
$this

setName()

Format: news/{code}

public setName(string $var) : $this

Generated from protobuf field string name = 1 [json_name = "name"];

Parameters
$var : string
Return values
$this

setSection()

Format: sections/{code}

public setSection(string $var) : $this

Generated from protobuf field string section = 5 [json_name = "section"];

Parameters
$var : string
Return values
$this

setSlug()

Generated slug for this news.

public setSlug(string $var) : $this

Generated from protobuf field string slug = 7 [json_name = "slug"];

Parameters
$var : string
Return values
$this

setSubtitle()

Generated from protobuf field <code>string subtitle = 3 [json_name = "subtitle"];</code>

public setSubtitle(string $var) : $this
Parameters
$var : string
Return values
$this

setTitle()

Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>

public setTitle(string $var) : $this
Parameters
$var : string
Return values
$this

        
On this page

Search results