Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/dashboard/layoutconfig/PhabricatorDashboardColumn.php
13450 views
1
<?php
2
3
final class PhabricatorDashboardColumn
4
extends Phobject {
5
6
private $columnKey;
7
private $classes = array();
8
private $refs = array();
9
10
public function setColumnKey($column_key) {
11
$this->columnKey = $column_key;
12
return $this;
13
}
14
15
public function getColumnKey() {
16
return $this->columnKey;
17
}
18
19
public function addClass($class) {
20
$this->classes[] = $class;
21
return $this;
22
}
23
24
public function getClasses() {
25
return $this->classes;
26
}
27
28
public function setPanelRefs(array $refs) {
29
assert_instances_of($refs, 'PhabricatorDashboardPanelRef');
30
$this->refs = $refs;
31
return $this;
32
}
33
34
public function addPanelRef(PhabricatorDashboardPanelRef $ref) {
35
$this->refs[] = $ref;
36
return $this;
37
}
38
39
public function getPanelRefs() {
40
return $this->refs;
41
}
42
43
}
44
45