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
stringgetCover()
Generated from protobuf field <code>.website.app.models.Cover cover = 6 [json_name = "cover"];</code>
public
getCover() : Cover|null
Return values
Cover|nullgetName()
Format: news/{code}
public
getName() : string
Generated from protobuf field string name = 1 [json_name = "name"];
Return values
stringgetSection()
Format: sections/{code}
public
getSection() : string
Generated from protobuf field string section = 5 [json_name = "section"];
Return values
stringgetSlug()
Generated slug for this news.
public
getSlug() : string
Generated from protobuf field string slug = 7 [json_name = "slug"];
Return values
stringgetSubtitle()
Generated from protobuf field <code>string subtitle = 3 [json_name = "subtitle"];</code>
public
getSubtitle() : string
Return values
stringgetTitle()
Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>
public
getTitle() : string
Return values
stringhasCover()
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
$thissetCover()
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
$thissetName()
Format: news/{code}
public
setName(string $var) : $this
Generated from protobuf field string name = 1 [json_name = "name"];
Parameters
- $var : string
Return values
$thissetSection()
Format: sections/{code}
public
setSection(string $var) : $this
Generated from protobuf field string section = 5 [json_name = "section"];
Parameters
- $var : string
Return values
$thissetSlug()
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
$thissetSubtitle()
Generated from protobuf field <code>string subtitle = 3 [json_name = "subtitle"];</code>
public
setSubtitle(string $var) : $this
Parameters
- $var : string
Return values
$thissetTitle()
Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>
public
setTitle(string $var) : $this
Parameters
- $var : string