-
Notifications
You must be signed in to change notification settings - Fork 0
/
Row.php
43 lines (43 loc) · 1.56 KB
/
Row.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Automatically Generated Shrewd File
*/
namespace BuildEmpire\Mosaic\Courseware;
use BuildEmpire\Shrewd\IShrewdStruct;
class Row implements IShrewdStruct
{
/**
* @var string-id
*/
public $id;
/**
* @var \BuildEmpire\Mosaic\Courseware\Column[]
*/
public $columns;
/**
* @var \BuildEmpire\Mosaic\Courseware\ColumnRowMetrics
*/
public $metrics;
public function getShrewdNS(){
return "BuildEmpire.Mosaic.Courseware.Row";
}
public function getShrewd(
\BuildEmpire\Shrewd\IShrewd $shrewd){
$paramArray = array();
$paramArray[] = $shrewd->getParameter("Row", 1, $this->id, "id", "string-id", "", false);
$paramArray[] = $shrewd->getParameter("Row", 1, $this->columns, "columns", "list", "\BuildEmpire\Mosaic\Courseware\Column", true);
$paramArray[] = ($shrewd->getParameter("Row", 1, $this->metrics, "metrics", "\BuildEmpire\Mosaic\Courseware\ColumnRowMetrics", "", true)) ? $shrewd->getParameter("Row", 1, $this->metrics, "metrics", "\BuildEmpire\Mosaic\Courseware\ColumnRowMetrics", "", true) : null;
return $paramArray;
}
public function setShrewd(
\BuildEmpire\Shrewd\IShrewd $shrewd,
$shrewdArray){
if (isset($shrewdArray[0])) {$this->id = $shrewd->setParameter("Row", 2, $shrewdArray[0], "id", "string-id", "", false);}
if (isset($shrewdArray[1])) {$this->columns = $shrewd->setParameter("Row", 2, $shrewdArray[1], "columns", "list", "\BuildEmpire\Mosaic\Courseware\Column", true);}
if (isset($shrewdArray[2]) && $shrewdArray[2]) {
$theClass = new \BuildEmpire\Mosaic\Courseware\ColumnRowMetrics();
$theClass->setShrewd($shrewd, $shrewdArray[2]);
$this->metrics = $theClass;
}
}
}