ArticleAssignment
in package
Implement mapper object for articles
Represent an article assignment to a basket
Tags
Table of Contents
- $article : stdClass|null
- The resolved article
- $bundle_config : array<string|int, mixed>|null
- $count : int|float
- The sum af articles
- $extra : array<string|int, mixed>|null
- $revision : string|null
- The git revision
- $target_rooms : array<string|int, mixed>|null
- $type : string|null
- $value : string
- The technical article id
- $raw : Article
- Buffer the raw article object
- __construct() : mixed
- Article assignment constructor.
- Article() : Article
Properties
$article
The resolved article
public
stdClass|null
$article
= null
$bundle_config
public
array<string|int, mixed>|null
$bundle_config
= null
$count
The sum af articles
public
int|float
$count
= 0
The amount
$extra
public
array<string|int, mixed>|null
$extra
$revision
The git revision
public
string|null
$revision
= FAA_GIT_DEFAULT_HASH
$target_rooms
public
array<string|int, mixed>|null
$target_rooms
$type
public
string|null
$type
= null
$value
The technical article id
public
string
$value
= ''
The id
$raw
Buffer the raw article object
private
Article
$raw
Methods
__construct()
Article assignment constructor.
public
__construct(array<string|int, mixed> $val, string|null $revision, Article $article, string|null $language) : mixed
Parameters
- $val : array<string|int, mixed>
-
Array with properties
- $revision : string|null
-
Revision of the article
- $article : Article
-
A resolved article object
- $language : string|null
Return values
mixed —Article()
public
Article() : Article