SmartCloudLibraryResponse
extends BaseProfileResponse
in package
Table of Contents
Properties
- $cloudLibrary : string
- $description : string
- $image : string
- $keywords : array<string|int, mixed>
- $nodesetId : int
- $orgName : string
- $publicationDate : string
- $required : array<string|int, mixed>
- $show : bool
- $source : string
- $title : string
- $version : string
Methods
- __construct() : mixed
- toArray() : array<string|int, mixed>
- Transform the response to a digestable format for the Smart Cloud Library UI
- formatDate() : string
- Format the date
Properties
$cloudLibrary
private
string
$cloudLibrary
$description
private
string
$description
$image
private
string
$image
$keywords
private
array<string|int, mixed>
$keywords
$nodesetId
private
int
$nodesetId
$orgName
private
string
$orgName
$publicationDate
private
string
$publicationDate
$required
private
array<string|int, mixed>
$required
$show
private
bool
$show
$source
private
string
$source
$title
private
string
$title
$version
private
string
$version
Methods
__construct()
public
__construct(string $cloudLibrary, int $nodesetId, string $title, string $description, string $version, string $orgName, string $publicationDate, bool $show, array<string|int, mixed> $required, string $source, array<string|int, mixed> $keywords, string $image) : mixed
Parameters
- $cloudLibrary : string
- $nodesetId : int
- $title : string
- $description : string
- $version : string
- $orgName : string
- $publicationDate : string
- $show : bool
- $required : array<string|int, mixed>
- $source : string
- $keywords : array<string|int, mixed>
- $image : string
toArray()
Transform the response to a digestable format for the Smart Cloud Library UI
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —- The response mapped to the UI
formatDate()
Format the date
protected
static formatDate(string $date[, string $format = 'M d, Y' ]) : string
Parameters
- $date : string
-
- The date to format
- $format : string = 'M d, Y'
-
- The format to use
Return values
string —- The formatted date